nanover.utilities.timing module

Module providing time-dependent utility methods.

class nanover.utilities.timing.VariableIntervalGenerator(default_interval)

Bases: object

property interval
yield_interval()
nanover.utilities.timing.wait_busy(seconds: float)

Do nothing for a period of time by tightly looping. Precise but uses much CPU.

nanover.utilities.timing.wait_mixed(seconds: float)

Do nothing for a period of time by using a series of short sleeps.

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

Yield immediately and then roughly every interval seconds, yielding the time in seconds that passed between yields.

Parameters:

interval – Number of seconds to ensure between yields

Yield:

Number of seconds since last yielding