net.sourceforge.pmd
Class Report.ReadableDuration

java.lang.Object
  extended by net.sourceforge.pmd.Report.ReadableDuration
Enclosing class:
Report

public static class Report.ReadableDuration
extends Object

Represents a duration. Useful for reporting processing time.


Constructor Summary
Report.ReadableDuration(long duration)
          Creates a new duration.
 
Method Summary
 String getTime()
          Gets a human readable representation of the duration, such as "1h 3m 5s".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Report.ReadableDuration

public Report.ReadableDuration(long duration)
Creates a new duration.

Parameters:
duration - the duration in milliseconds.
Method Detail

getTime

public String getTime()
Gets a human readable representation of the duration, such as "1h 3m 5s".

Returns:
human readable representation of the duration


Copyright © 2002-2015 InfoEther. All Rights Reserved.