Class TimeUtils

java.lang.Object
org.apache.qpid.protonj2.client.util.TimeUtils

public final class TimeUtils extends Object
Time utils.
  • Method Details

    • 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