Class TimePrinter


  • public final class TimePrinter
    extends java.lang.Object
    • Method Detail

      • createSecondsFormatter

        @NotNull
        public static TimePrinter createSecondsFormatter()
      • createSecondsFormatter

        @NotNull
        public static TimePrinter createSecondsFormatter​(boolean alwaysPrintSeconds)
      • createMillisecondsFormatter

        @NotNull
        public static TimePrinter createMillisecondsFormatter()
      • formatTime

        @Deprecated
        public void formatTime​(@NotNull
                               java.lang.StringBuilder sb,
                               long timeToFormat)
        Deprecated.
      • formatTime

        @NotNull
        public java.lang.String formatTime​(long time)
        Parameters:
        time - time to format in seconds for TimePrinter.TimeFormat.SECONDS or in milliseconds for TimePrinter.TimeFormat.MILLISECONDS