java.lang.Object
org.pentaho.reporting.libraries.base.util.StopWatch
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
LoggingStopWatch

public class StopWatch extends Object implements Closeable
  • Constructor Details

    • StopWatch

      public StopWatch()
  • Method Details

    • startNew

      public static StopWatch startNew()
    • start

      public void start()
    • reset

      public void reset()
    • stop

      public void stop()
    • getElapsedTime

      public long getElapsedTime()
    • getElapsedMilliseconds

      public double getElapsedMilliseconds()
    • getElapsedSeconds

      public double getElapsedSeconds()
    • toString

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

      public long getStartTime()
    • getStartMilliseconds

      public double getStartMilliseconds()
    • isStarted

      public boolean isStarted()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable