Class DurationFormatter


  • public final class DurationFormatter
    extends java.lang.Object
    Copy of gradle's internal TimeFormatting class, which become internal in gradle 4.2 and broke compatibility.

    Used to pretty print elapsed tile in human-readable form.

    Since:
    21.09.2017
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String format​(long duration)  
      • Methods inherited from class java.lang.Object

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

      • format

        public static java.lang.String format​(long duration)
        Parameters:
        duration - duration in milliseconds
        Returns:
        human-readable (short) duration