narupa.utilities.timing module

Module providing time-dependent utility methods.

class narupa.utilities.timing.VariableIntervalGenerator(default_interval)

Bases: object

interval
yield_interval()
narupa.utilities.timing.yield_interval(interval: float)

Yield at a set interval, accounting for the time spent outside of this function.

Parameters:interval – Number of seconds to put between yields