hydrac.util.timer

Clocking timer (hydrac.util.timer)

Provides:

class hydrac.util.timer.Timer(time_between_ticks)[source]

Bases: object

Timer ticking with a particular period.

Attributes:
time_between_ticks : float

Period between the ticks.

wait_tick(self)[source]

Block till the next tick.

class hydrac.util.timer.TimerIrregular(timing)[source]

Bases: hydrac.util.timer.Timer

Timer ticking for a numpy array of time.

This time array can be irregular.

wait_tick(self)[source]

Block till the next tick.

Functions

parse_timestamp(timestr) Converts a timestamp to a time.struct_time object.
time_gteq(timestr1, timestr2) Compares two timestamps strings.

Classes

Timer(time_between_ticks) Timer ticking with a particular period.
TimerIrregular(timing) Timer ticking for a numpy array of time.