Quartz::TimeCache
The TimeCache data structure is used to store and retrieve elapsed
durations since a particular event.
Constructors
new(current_time : TimePoint = TimePoint.new(0))
SourceInstance methods
advance(by duration : Duration) : TimePoint
Advance the current time by the given Duration relative to the current
time.
advance(until time_point : TimePoint) : TimePoint
Advance the current time until match the given TimePoint.
current_time=(current_time : TimePoint)
Returns the current time associated with the time cache.
elapsed_duration_of(event : Schedulable) : Duration
Returns the elapsed Duration associated with the given event since the
previous event.
release_event(event : Schedulable)
Cancel the tracking of the elapsed duration since the previous event of the given event.
retain_event(event : Schedulable, precision : Scale)
Retain the given event in order to track the elapsed duration since the
#current_time as time advances.
retain_event(event : Schedulable, elapsed : Duration)
Retain the given event with a given elapsed duration since the
#current_time, in order to track it as time advances.