hydrac.util.timer¶
Clocking timer (hydrac.util.timer)¶
Provides:
-
class
hydrac.util.timer.Timer(time_between_ticks)[source]¶ Bases:
objectTimer ticking with a particular period.
Attributes: - time_between_ticks : float
Period between the ticks.
-
class
hydrac.util.timer.TimerIrregular(timing)[source]¶ Bases:
hydrac.util.timer.TimerTimer ticking for a numpy array of time.
This time array can be irregular.
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. |