| Constructor and Description |
|---|
NanoTimer(long delay) |
| Modifier and Type | Method and Description |
|---|---|
long |
getPassedTime() |
void |
reset()
Reset the time.
|
long |
waitUntil()
Wait until the delay has passed.
The time will be reset after the delay has passed. The thread will not be paused if the delay has already passed or if Timer.forcePass() has been called. |
public void reset()
Timerpublic long getPassedTime()
getPassedTime in class Timerpublic long waitUntil()
throws java.lang.InterruptedException
TimerTimer.forcePass() has been called.