public class SystemMonotonicTimeSource extends java.lang.Object implements TimeSource
| Constructor and Description |
|---|
SystemMonotonicTimeSource() |
| Modifier and Type | Method and Description |
|---|---|
long |
currentTimeNano() |
void |
wakeUpAt(long timestamp,
java.util.concurrent.TimeUnit timeUnit) |
void |
wakeUpNow() |
public long currentTimeNano()
currentTimeNano in interface TimeSourcepublic void wakeUpAt(long timestamp,
java.util.concurrent.TimeUnit timeUnit)
throws java.lang.InterruptedException
wakeUpAt in interface TimeSourcejava.lang.InterruptedExceptionpublic void wakeUpNow()
wakeUpNow in interface TimeSource