Interface MonotonicClockTranslation

All Known Implementing Classes:
MonotonicClock.AbstractEpochSamplingClock.AlmostSameTime

public interface MonotonicClockTranslation
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    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
  • Method Details

    • fromMillisSinceEpoch

      long fromMillisSinceEpoch(long currentTimeMillis)
      accepts millis since epoch, returns nanoTime in the related clock
    • toMillisSinceEpoch

      long toMillisSinceEpoch(long nanoTime)
      accepts nanoTime in the related MonotinicClock, returns millis since epoch
    • error

      long error()
      Nanoseconds of probable error in the translation