com.facebook.common.time.MonotonicClock |
Known Indirect Subclasses |
A clock that is guaranteed not to go backward.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract long |
now()
Produce a timestamp.
|
Produce a timestamp. Values returned from this method may only be compared to other values returned from this clock in this process. They have no meaning outside of this process and should not be written to disk.
The difference between two timestamps is an interval, in milliseconds.