Class MonotonicClock.AbstractEpochSamplingClock.AlmostSameTime

    • Constructor Summary

      Constructors 
      Constructor Description
      AlmostSameTime​(long millisSinceEpoch, long monotonicNanos, long errorNanos)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long error()
      Nanoseconds of probable error in the translation
      long fromMillisSinceEpoch​(long currentTimeMillis)
      accepts millis since epoch, returns nanoTime in the related clock
      long toMillisSinceEpoch​(long nanoTime)
      accepts nanoTime in the related MonotinicClock, returns millis since epoch
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait