Class Stopwatch

    • Field Detail

      • start

        private final long start
    • Constructor Detail

      • Stopwatch

        private Stopwatch​(long start)
    • Method Detail

      • createStarted

        public static Stopwatch createStarted()
        Creates and starts a stopwatch
        Returns:
        the started stopwatch
      • elapsed

        public long elapsed()
        Returns the elapsed milliseconds
        Returns:
        the elapsed milliseconds
      • toString

        public String toString​(String taskName)
        Formats the given task name and duration since start as i18n string
        Parameters:
        taskName - the task name
        Returns:
        the task name and duration since start as i18n string