net.sourceforge.pmd
Class Report.ReadableDuration
java.lang.Object
net.sourceforge.pmd.Report.ReadableDuration
- Enclosing class:
- Report
public static class Report.ReadableDuration
- extends Object
Represents a duration. Useful for reporting processing time.
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 |
Report.ReadableDuration
public Report.ReadableDuration(long duration)
- Creates a new duration.
- Parameters:
duration
- the duration in milliseconds.
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.