Class Report.ReadableDuration

  • Enclosing class:
    Report

    @Deprecated
    public static class Report.ReadableDuration
    extends Object
    Deprecated.
    Not used within PMD. Rendering durations is format-specific.
    Represents a duration. Useful for reporting processing time.
    • Constructor Detail

      • ReadableDuration

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

      • getTime

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