Package akka.util

Class PrettyDuration


  • public class PrettyDuration
    extends java.lang.Object
    INTERNAL API
    • Constructor Summary

      Constructors 
      Constructor Description
      PrettyDuration()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String format​(scala.concurrent.duration.Duration duration)
      JAVA API Selects most appropriate TimeUnit for given duration and formats it accordingly, with 4 digits precision
      static java.lang.String format​(scala.concurrent.duration.Duration duration, boolean includeNanos, int precision)
      JAVA API Selects most appropriate TimeUnit for given duration and formats it accordingly
      static PrettyDuration.PrettyPrintableDuration PrettyPrintableDuration​(scala.concurrent.duration.Duration duration)  
      • Methods inherited from class java.lang.Object

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

      • PrettyDuration

        public PrettyDuration()
    • Method Detail

      • format

        public static java.lang.String format​(scala.concurrent.duration.Duration duration)
        JAVA API Selects most appropriate TimeUnit for given duration and formats it accordingly, with 4 digits precision
        Parameters:
        duration - (undocumented)
        Returns:
        (undocumented)
      • format

        public static java.lang.String format​(scala.concurrent.duration.Duration duration,
                                              boolean includeNanos,
                                              int precision)
        JAVA API Selects most appropriate TimeUnit for given duration and formats it accordingly
        Parameters:
        duration - (undocumented)
        includeNanos - (undocumented)
        precision - (undocumented)
        Returns:
        (undocumented)