|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.diasparsoftware.gsbase.SystemClockStopwatch
An production-quality implementation of com.gargoylesoftware.base.util.Stopwatch that uses the system clock.
Constructor Summary | |
SystemClockStopwatch()
|
Method Summary | |
long |
getLastTime()
Returns the last time interval recorded by the stopwatch. |
void |
reset()
Resets the stopwatch, clearing the last time and preparing the shopwatch to be started again. |
void |
start()
Start the stopwatch. |
void |
stop()
Stops the stopwatch. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SystemClockStopwatch()
Method Detail |
public void start()
Stopwatch
start
in interface Stopwatch
public void stop()
Stopwatch
stop
in interface Stopwatch
public void reset()
Stopwatch
reset
in interface Stopwatch
public long getLastTime()
Stopwatch
stop()
after having invoked start()
.
getLastTime
in interface Stopwatch
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |