Class StopWatch
java.lang.Object
org.antublue.test.engine.internal.util.StopWatch
Class to implement a stop watch
-
Constructor Details
-
StopWatch
public StopWatch()Constructor
-
-
Method Details
-
reset
ConstructorThe stop watch starts automatically
/ public StopWatch() { reset(); }
/** Method to reset the stop watch
- Returns:
- this
-
stop
Method to stop the stop watch- Returns:
- this
-
elapsedNanoseconds
public long elapsedNanoseconds()Method to get the elapsed time in nanoseconds- Returns:
- the elapsed time in nanoseconds
-
elapsedMilliseconds
public long elapsedMilliseconds()Method to get the elapsed time in milliseconds- Returns:
- the elapsed time in milliseconds
-