|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Measures elapsed time.
The moment Clock
is instantiated it beginns counting.
Every time getElapsedMillis
is called it returns the time
elapsed since instantiation in milliseconds. The clock does not stop
counting so any subsequent call of getElapsedMillis
returns
the time elapsed since instantiation. If the start of a new counting is
needed reset
has to be called.
Method Summary | |
long |
getElapsedMillis()
Returns the elapsed time in milliseconds since the instantiation or the last reset() . |
void |
reset()
Resets the starting time. |
Method Detail |
public long getElapsedMillis()
Returns the elapsed time in milliseconds since the instantiation or
the last reset()
.
public void reset()
Resets the starting time.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |