Interface MonotonicClock

All Known Implementing Classes:
MonotonicClock.AbstractEpochSamplingClock, MonotonicClock.SampledClock, MonotonicClock.SystemClock

public interface MonotonicClock
Wrapper around time related functions that are either implemented by using the default JVM calls or by using a custom implementation for testing purposes. See MonotonicClock.Global.preciseTime for how to use a custom implementation. Please note that Clock wasn't used, as it would not be possible to provide an implementation for now() with the exact same properties of System.nanoTime(). TODO better rationalise MonotonicClock/Clock