Package org.apache.flink.util.clock
Interface RelativeClock
-
- All Known Implementing Classes:
Clock,ManualClock,SystemClock
@PublicEvolving public interface RelativeClockA clock that gives access to relative time, similar to System#nanoTime(), however the progress of the relative time doesn't have to reflect the progress of a wall clock. Concrete classes can specify a different contract in that regard. Returned time must be monotonically increasing.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longrelativeTimeMillis()Gets the current relative time, in milliseconds.longrelativeTimeNanos()Gets the current relative time, in nanoseconds.
-