Returns the current value of the high-resolution time source, in nanoseconds.
Returns the difference in nanoseconds between the current instant and the provided one.
Creates a new Instant from the provided high-resolution time source value.
Clock implementation that creates an anchor between the time sources used by
System.nanoTimeandSystem.currentTimeMillisto create Instant instances that properly reflect the current system time (as is always the case withSystem.currentTimeMillis) but with better performance characteristics, given that the current Instant can be derived using a call toSystem.nanoTime, which is considerably faster.