Package org.apache.activemq.util
Class TimeUtils
- java.lang.Object
-
- org.apache.activemq.util.TimeUtils
-
public final class TimeUtils extends Object
Time utilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
printDuration(double uptime)
Prints the duration in a human readable format as X days Y hours Z minutes etc.
-
-
-
Method Detail
-
printDuration
public static String printDuration(double uptime)
Prints the duration in a human readable format as X days Y hours Z minutes etc.- Parameters:
uptime
- the up-time in milliseconds- Returns:
- the time used for displaying on screen or in logs
-
-