fluiddyn.util.timer๏ƒ

Clocking timer (fluiddyn.util.timer)๏ƒ

Provides:

class fluiddyn.util.timer.Timer(time_between_ticks)[source]๏ƒ

Bases: object

Timer ticking with a particular period.

Parameters:
time_between_ticksfloat

Period between the ticks (in s).

wait_tick()[source]๏ƒ

Block till the next tick.

class fluiddyn.util.timer.TimerIrregular(times_ticks)[source]๏ƒ

Bases: Timer

Timer ticking for a numpy array of time.

Parameters:
times_ticks: (sorted) sequence

A sequence of times (in second), which can be irregular.

wait_tick()[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.

timestamp_to_seconds(timestr)

Converts a timestamp to total seconds.

Classes

TimeStr(value)

String types with special comparison operators to compare equivalent time.struct.

Timer(time_between_ticks)

Timer ticking with a particular period.

TimerIrregular(times_ticks)

Timer ticking for a numpy array of time.