class Quartz::TimeCache
- Quartz::TimeCache
- Reference
- Object
Overview
The TimeCache data structure is used to store and retrieve elapsed
durations since a particular event.
Defined in:
quartz/time_cache.crConstructors
Instance Method Summary
-
#advance(by duration : Duration) : TimePoint
Advance the current time by the given
Durationrelative to the current time. -
#advance(until time_point : TimePoint) : TimePoint
Advance the current time until match the given
TimePoint. -
#current_time : TimePoint
Returns the current time associated with the time cache.
-
#current_time=(current_time : TimePoint)
Returns the current time associated with the time cache.
-
#elapsed_duration_of(event : Schedulable) : Duration
Returns the elapsed
Durationassociated 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_timeas 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.
Instance methods inherited from class Reference
==(other : Quartz::Any)
==
Instance methods inherited from class Object
===(other : Quartz::Any)
===
Constructor Detail
Instance Method Detail
Advance the current time by the given Duration relative to the current
time.
Advance the current time until match the given TimePoint.
Returns the current time associated with the time cache.
Returns the current time associated with the time cache.
Returns the elapsed Duration associated with the given event since the
previous event.
Cancel the tracking of the elapsed duration since the previous event of the given event.
Retain the given event in order to track the elapsed duration since the
#current_time as time advances.
Retain the given event with a given elapsed duration since the
#current_time, in order to track it as time advances.