|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.anthonyeden.lib.util.Stopwatch
Simple class for starting and stopping a stopwatch. This class is useful for timing how long a particular block of code takes to execute.
| Constructor Summary | |
Stopwatch()
|
|
| Method Summary | |
long |
getElapsedTime()
Get the elapsed time for the stopwatch in milliseconds. |
void |
start()
Start the stopwatch. |
void |
stop()
Stop the stopwatch. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Stopwatch()
| Method Detail |
public void start()
java.lang.IllegalStateException - If the stopwatch is already runningpublic void stop()
java.lang.IllegalStateException - If the stopwatch is not runningpublic long getElapsedTime()
java.lang.IllegalStateException - If the stopwatch is running
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||