Class Stopwatch

java.lang.Object
se.datadosen.util.Stopwatch
All Implemented Interfaces:
Comparable

public class Stopwatch extends Object implements Comparable
  • Constructor Details

    • Stopwatch

      public Stopwatch()
    • Stopwatch

      public Stopwatch(String label)
  • Method Details

    • start

      public Stopwatch start()
    • stop

      public Stopwatch stop()
    • reset

      public Stopwatch reset()
    • getSecs

      public double getSecs()
      Returns:
      Since:
      31.1
    • getMillis

      public long getMillis()
    • setMillis

      public void setMillis(long millis)
    • trace

      public static String trace()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • print

      public void print()
    • printDelta

      public String printDelta(String msg)
      Prints time passed since last printDelta call
      Returns:
      time passed since last printDelta call
      Since:
      12.6
    • isRunning

      public boolean isRunning()
    • compareTo

      public int compareTo(Object o)
      Specified by:
      compareTo in interface Comparable