Class TimeUtils


  • public final class TimeUtils
    extends java.lang.Object
    Time utils.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.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 java.lang.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