Class TimeUtils


  • public final class TimeUtils
    extends java.lang.Object
    Since:
    3.6
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String formatDuration​(long durationInMs)
      Label for a duration, expressed in numbers of ms, seconds or minutes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • formatDuration

        public static java.lang.String formatDuration​(long durationInMs)
        Label for a duration, expressed in numbers of ms, seconds or minutes.
        Examples:
        • 10 -> "10ms"
        • 100 -> "100ms"
        • 10000 -> "10s"
        • 100000 -> "1min 40s"