Class Stopwatch

java.lang.Object
se.datadosen.util.Stopwatch

public class Stopwatch
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    Stopwatch()  
    Stopwatch​(java.lang.String label)  
  • Method Summary

    Modifier and Type Method Description
    long getMillis()  
    boolean isRunning()  
    void print()  
    java.lang.String printDelta​(java.lang.String msg)
    Prints time passed since last printDelta call
    Stopwatch reset()  
    Stopwatch start()  
    Stopwatch stop()  
    java.lang.String toString()  
    static java.lang.String trace()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • start

      public Stopwatch start()
    • stop

      public Stopwatch stop()
    • reset

      public Stopwatch reset()
    • getMillis

      public long getMillis()
    • trace

      public static java.lang.String trace()
    • toString

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

      public void print()
    • printDelta

      public java.lang.String printDelta​(java.lang.String msg)
      Prints time passed since last printDelta call
      Since:
      12.6
    • isRunning

      public boolean isRunning()