|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Stopwatch
A simple millisecond stopwatch. start() sets stopwatch measure of time elapsed. stop() adds time elapsed since previous start() to total elapsed time and returns total elapsed time. reset() resets total elapsed time. lap() returns total elapsed time without "stopping" the stopwatch. It's actually easier to read the code than these comments. :)
| Constructor Summary | |
Stopwatch()
|
|
| Method Summary | |
long |
lap()
Return millisecond stopwatch time elapsed so far. |
void |
reset()
Reset the millisecond stopwatch. |
void |
start()
Start millisecond stopwatch. |
long |
stop()
Stop millisecond stopwatch and return total time elapsed. |
| 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 long lap()
public void reset()
public void start()
public long stop()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||