Interface Clock
-
public interface Clock
A simple interface for representing a Clock logically. This is useful whenever you might want to change the behavior of "time" in logical ways (for example, by using a monotonic counter instead of an actual clock) without changing the algorithms that use it.There are a bunch of interfaces like this in our library set, having our own is useful for dependency management, otherwise it would just be a waste of text.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
readNanos()
Read the clock's logical time, with nanosecond units.
-