class documentation
class MemoryDriver: (source)
In-memory TimeDriver that only moves when advance is called.
| Method | advance |
Advance the clock of this driver by delta seconds. |
| Method | is |
Does this driver currently have work scheduled with it? |
| Method | now |
TimeDriver.now |
| Method | reschedule |
Schedule the given work to happen at the given time. |
| Method | unschedule |
TimeDriver.unschedule |
| Class Variable | _current |
Undocumented |
| Instance Variable | _scheduled |
Undocumented |
Advance the clock of this driver by delta seconds.
If no delta is provided, then advance until the next scheduled time when this driver would run something.
| Returns | |
float | None | the amount of time that was advanced, or None if no work was scheduled. |
Schedule the given work to happen at the given time.
| See Also | |
TimeDriver.reschedule | |
| Note | |
In order to avoid infinite loops where time is not moving forward while work is being scheduled at the current moment or in the past, time (as referenced by MemoryDriver.now) will always advance by at least one ULP, so if desiredTime is before or exactly now, by the time work is run, now will be very slightly greater. |