public final class FixedUpMonotonicClock extends java.lang.Object implements MonotonicClockSource
To minimise timing errors when such discontinuities occur, a sleepy thread
makes regular calls to getMsTime
, since timed calls to
the thread sleep
method are assumed to be independent of the
wallclock time. This places an upper limit on the interval between requests
to getMsTime
.
Constructor and Description |
---|
FixedUpMonotonicClock() |
public long getMsTime()
MonotonicClockSource
getMsTime
in interface MonotonicClockSource
public void init()
MonotonicClockSource
init
in interface MonotonicClockSource