org.apache.activemq.util
Class TimeUtils

java.lang.Object
  extended by org.apache.activemq.util.TimeUtils

public final class TimeUtils
extends Object

Time utils.

Version:

Method Summary
static String printDuration(double uptime)
          Prints the duration in a human readable format as X days Y hours Z minutes etc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 uptime in millis
Returns:
the time used for displaying on screen or in logs


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.