interface documentation

Time methods that a Reactor should implement.

Method callLater Call a function later.
Method getDelayedCalls See twisted.internet.interfaces.IReactorTime.getDelayedCalls
Method seconds Get the current time in seconds.
def callLater(delay: float, callable: Callable[..., Any], *args: object, **kwargs: object) -> IDelayedCall: (source)

Call a function later.

Parameters
delay:floatthe number of seconds to wait.
callable:Callable[..., Any]the callable object to call later.
*args:objectthe arguments to call it with.
**kwargs:objectthe keyword arguments to call it with.
Returns
IDelayedCallAn 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.
def seconds() -> float: (source)

Get the current time in seconds.

Returns
floatA number-like object of some sort.