Class Report.ReadableDuration

  • Enclosing class:
    Report

    public static class Report.ReadableDuration
    extends java.lang.Object
    Represents a duration. Useful for reporting processing time.
    • Constructor Summary

      Constructors 
      Constructor Description
      ReadableDuration​(long duration)
      Creates a new duration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getTime()
      Gets a human readable representation of the duration, such as "1h 3m 5s".
      • Methods inherited from class java.lang.Object

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

      • ReadableDuration

        public ReadableDuration​(long duration)
        Creates a new duration.
        Parameters:
        duration - the duration in milliseconds.
    • Method Detail

      • getTime

        public java.lang.String getTime()
        Gets a human readable representation of the duration, such as "1h 3m 5s".
        Returns:
        human readable representation of the duration