Clock implementation that creates an anchor between the time sources used by System.nanoTime and
System.currentTimeMillis to create Instant instances that properly reflect the current system time (as is always
the case with System.currentTimeMillis) but with better performance characteristics, given that the current
Instant can be derived using a call to System.nanoTime, which is considerably faster.
Clock implementation that creates an anchor between the time sources used by
System.nanoTime
andSystem.currentTimeMillis
to 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.