Timer#

class pybads.utils.timer.Timer(eps_t=1e-09)[source]#

A small Timer class used to time the different parts of PyBADS.

get_duration(name: str)[source]#

Return the duration of the specified timer.

Parameters:
namestr

The name of the timer which time should be returned.

Returns:
durationfloat

The duration of the timer or None when the timer is not existing.

start_timer(name: str)[source]#

Start the specified timer.

Parameters:
namestr

The name of the timer that should be started.

stop_timer(name: str)[source]#

Stop the specified timer

Parameters:
namestr

The name of the timer that should be started.