class twisted.internet.interfaces.IReactorTime(Interface): (source)
Time methods that a Reactor should implement.
Method | seconds | Get the current time in seconds. |
Method | callLater | Call a function later. |
Method | getDelayedCalls | Retrieve all currently scheduled delayed calls. |
Get the current time in seconds.
Returns | A number-like object of some sort. (type: float ) |
Call a function later.
Parameters | delay | the number of seconds to wait. (type: float ) |
callable | the callable object to call later. (type: Callable[..., Any] ) | |
args | the arguments to call it with. (type: object ) | |
kwargs | the keyword arguments to call it with. (type: object ) | |
Returns | An object which provides IDelayedCall and can be used to cancel the scheduled call, by calling its cancel() method. It also may be rescheduled by calling its delay() or reset() methods. (type: IDelayedCall ) |
Retrieve all currently scheduled delayed calls.
Returns | A list of IDelayedCall providers representing all currently scheduled calls. This is everything that has been returned by callLater but not yet called or cancelled. (type: List[IDelayedCall] ) |