Get current time in milliseconds since the beginning of the epoch (01/01/1970).
Note that this time may not necessarily match the actual system time - e.g. in unit tests.
Returns:
Current system time in milliseconds since the start of the epoch.
Deprecated.[REEF-1532] Prefer passing Time object instead of the numeric timestamp.
Remove after release 0.16.
Get the number of milliseconds between current time as tracked by the Timer implementation
and the given event. Can return a negative number if the event is already in the past.
Parameters:
time - Timestamp in milliseconds.
Returns:
Difference in milliseconds between the given timestamp and the time tracked by the timer.
The result is a negative number if the timestamp is in the past (according to the timer's time).
Get the number of milliseconds between current time as tracked by the Timer implementation
and the given event. Can return a negative number if the event is already in the past.
Parameters:
time - Timestamp object that wraps time in milliseconds.
Returns:
Difference in milliseconds between the given timestamp and the time tracked by the timer.
The result is a negative number if the timestamp is in the past (according to the timer's time).
Deprecated.[REEF-1532] Prefer passing Time object instead of the numeric timestamp.
Remove after release 0.16.
Check if the event with a given timestamp has occurred, according to the timer.
Return true if the timestamp is equal or less than the timer's time, and false if
it is still in the (timer's) future.
Parameters:
time - Timestamp in milliseconds.
Returns:
False if the given timestamp is still in the timer's time future.
Check if the event with a given timestamp has occurred, according to the timer.
Return true if the timestamp is equal or less than the timer's time, and false if
it is still in the (timer's) future.
Parameters:
time - Timestamp object that wraps time in milliseconds.
Returns:
False if the given timestamp is still in the timer's time future.