Specifies the interface to a generic monotonic clock source. This interface
defines the way in which a reactor component can access a suitable monotonic
clock for use as its timebase. Various underlying implementations may be
used, depending on the Java version in use and the underlying platform
support for monotonic clocks.
Initialises the monotonic clock source. This method is called on startup by
the reactor in order to initialise the timebase clock. It resets the
current clock time value to 0 and then sets the timer counter running.
getMsTime
long getMsTime()
Gets the elapsed time since the monotonic clock source was initialised.
This method is called in order to obtain the current time, defined as the
integer number of milliseconds since the monotonic clock source was
initialised.
Returns:
Returns the monotonic time since the clock was initialised,
specified in milliseconds. Returns invalid data if the clock has
not been initialised.