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