|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.toronto.cs.util.StopWatch
public class StopWatch
This class implements a stop watch.
Constructor Summary | |
---|---|
StopWatch()
Creates a new StopWatch which starts ticking immediately. |
Method Summary | |
---|---|
long |
getTimeElapsed()
Gets the time elapsed in milliseconds. |
void |
pause()
Stops the time counter recording the elapsed time. |
void |
reset()
Resets the time counter and restarts the StopWatch. |
void |
resume()
Resumes the time counting if the watch was stopped. |
void |
stop()
|
java.lang.String |
toString()
Gets the time elapsed in hh:mm:ss.sss format as a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StopWatch()
Method Detail |
---|
public void reset()
public void pause()
public void stop()
public void resume()
public long getTimeElapsed()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |