Class StopWatch
- 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 Summary
Constructors Constructor Description StopWatch()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()doublegetElapsedMilliseconds()doublegetElapsedSeconds()longgetElapsedTime()doublegetStartMilliseconds()longgetStartTime()booleanisStarted()voidreset()voidstart()static StopWatchstartNew()voidstop()StringtoString()
-
-
-
Method Detail
-
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()
-
getStartTime
public long getStartTime()
-
getStartMilliseconds
public double getStartMilliseconds()
-
isStarted
public boolean isStarted()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-