twisted.internet.taskView Source (View In Hierarchy)
Known subclasses: twisted.test.proto_helpers.MemoryReactorClock
Implements interfaces: twisted.internet.interfaces.IReactorTime
Provide a deterministic, easily-controlled implementation of
This is commonly useful for writing deterministic unit tests for code which
schedules events using this API.
|Method||seconds||Pretend to be time.time(). This is used internally when an operation
|Method||advance||Move time on this clock forward by the given amount and run whatever pending calls should be run.|
|Method||pump||Advance incrementally by the given set of times.|
|Method||_sortCalls||Sort the pending calls according to the time they are scheduled.|
Sort the pending calls according to the time they are scheduled.
Move time on this clock forward by the given amount and run whatever pending calls should be run.
|Parameters||amount||The number of seconds which to advance this clock's time. (type: |
Advance incrementally by the given set of times.