public final class JavaMonotonicClock extends java.lang.Object implements MonotonicClockSource
nanoTime
system
call which provides a monotonic clock source on supported platforms. Note
that some platforms, including many standard Linux distributions, do not
provide native monotonic clock support and these should use the fixed up
monotonic clock source instead.
This simple implementation does not wrap correctly and will fail after 292 years of uptime.
Constructor and Description |
---|
JavaMonotonicClock() |
public long getMsTime()
MonotonicClockSource
getMsTime
in interface MonotonicClockSource
public void init()
MonotonicClockSource
init
in interface MonotonicClockSource