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 void
close()
double
getElapsedMilliseconds()
double
getElapsedSeconds()
long
getElapsedTime()
double
getStartMilliseconds()
long
getStartTime()
boolean
isStarted()
void
reset()
void
start()
static StopWatch
startNew()
void
stop()
String
toString()
-
-
-
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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-