public interface Clock
Modifier and Type | Method and Description |
---|---|
long |
nanoTime() |
void |
sleepNano(long nao)
Performs a sleep using nanoseconds as a time unit.
|
long nanoTime()
System.nanoTime()
.void sleepNano(long nao) throws InterruptedException
Thread.sleep(long, int)
.nano
- the minimum time to sleep. If less than
or equal to zero, do not sleep at all.InterruptedException
- if interrupted while sleepingCopyright © 2018. All rights reserved.