class documentation

class EverySecond: (source)

View In Hierarchy

An EverySecond is a RecurrenceRule based on a float timestamp, that can repeat work on a physical-time interval.

Method __call__ Compute a step count and next desired recurrence time based on a reference time and a current time in floating-point POSIX timestamps like those returned by time.time and datetime.datetime.timestamp, and number of seconds in ...
Instance Variable seconds the number of seconds between recurrences.
def __call__(self, reference: float, current: float) -> tuple[int, float]: (source)

Compute a step count and next desired recurrence time based on a reference time and a current time in floating-point POSIX timestamps like those returned by time.time and datetime.datetime.timestamp, and number of seconds in self.seconds.

See Also
RecurrenceRule

the number of seconds between recurrences.