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 long
milliseconds()
Returns the current time in milliseconds.long
nanoseconds()
Returns the current value of the running JVM's high-resolution time source, in nanoseconds.void
sleep(Duration duration)
-
-
-
Method Detail
-
milliseconds
public long milliseconds()
Returns the current time in milliseconds.- Specified by:
milliseconds
in interfaceTime
-
nanoseconds
public long nanoseconds()
Returns the current value of the running JVM's high-resolution time source, in nanoseconds.- Specified by:
nanoseconds
in interfaceTime
-
-