Package org.apache.cassandra.utils
Interface MonotonicClockTranslation
-
- All Known Implementing Classes:
MonotonicClock.AbstractEpochSamplingClock.AlmostSameTime
public interface MonotonicClockTranslation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
error()
Nanoseconds of probable error in the translationlong
fromMillisSinceEpoch(long currentTimeMillis)
accepts millis since epoch, returns nanoTime in the related clocklong
toMillisSinceEpoch(long nanoTime)
accepts nanoTime in the related MonotinicClock, returns millis since epoch
-
-
-
Method Detail
-
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
-
-