public class Timer
extends java.lang.Object
Constructor and Description |
---|
Timer()
Basic constructor which sets the timer base to the current time.
|
Modifier and Type | Method and Description |
---|---|
long |
elapsed()
Return the number of milliseconds elapsed since the last timer
reset.
|
long |
elapsed(java.lang.Runnable action)
Return the length of time elapsed to run the given runnable.
|
void |
reset()
Set the start time to the current time.
|
Abbot is hosted on