Constructor and Description |
---|
Timer()
Create a timer.
|
Modifier and Type | Method and Description |
---|---|
long |
duration()
Get the duration of the timer in milliseconds.
|
void |
start()
Start the timer
|
void |
stop()
Stop the timer
|
static Timer |
timer() |
public long duration()
public void start()
public void stop()