java.lang.ObjectStopWatch
public class StopWatch
A millisecond stop watch
Constructor Summary | |
---|---|
StopWatch()
Build a stop watch in the stopped state, with no elapsed time |
Method Summary | |
---|---|
long |
getElapsedTime()
Extract the elapsed time in milliseconds |
boolean |
isRunning()
Determine if the stop watch is running |
void |
reset()
Stop the timer and reset to 0 elapsed time |
void |
start()
Starts the timer |
void |
stop()
Stops the timer |
java.lang.String |
toString()
String representation of the elapsed time |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StopWatch()
Method Detail |
---|
public long getElapsedTime()
public boolean isRunning()
public void reset()
public void start()
public void stop()
public java.lang.String toString()
toString
in class java.lang.Object