|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.datetime.SimpleTimer
Measures time periods.
Constructor Summary | |
SimpleTimer()
Initialization and timer begins to count. |
Method Summary | |
long |
elapsed()
Stops timer if running. |
long |
lap()
Returns elapsed time from the last start and keeps timer running. |
void |
start()
Starts the timer. |
long |
stop()
Stops timer and returns elapsed time from last timer start in ms. |
java.lang.String |
toString()
Returns elapsed time as String from the last start. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SimpleTimer()
Method Detail |
public void start()
public long stop()
public long lap()
public long elapsed()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |