Class SystemTime
- java.lang.Object
-
- io.streamthoughts.azkarra.api.time.SystemTime
-
-
Constructor Summary
Constructors Constructor Description SystemTime()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longmilliseconds()Returns the current time in milliseconds.longnanoseconds()Returns the current value of the running JVM's high-resolution time source, in nanoseconds.voidsleep(Duration duration)
-
-
-
Method Detail
-
milliseconds
public long milliseconds()
Returns the current time in milliseconds.- Specified by:
millisecondsin interfaceTime
-
nanoseconds
public long nanoseconds()
Returns the current value of the running JVM's high-resolution time source, in nanoseconds.- Specified by:
nanosecondsin interfaceTime
-
-