jade.utils.timing_utils.TimerStats

class jade.utils.timing_utils.TimerStats(name)[source]

Bases: object

Tracks timing stats for one code block.

Methods

get_stats()

Get the current stats summary.

log_stats()

Log a summary of the stats.

update(duration)

Update the stats with a new timing.

get_stats()[source]

Get the current stats summary.

Return type:

dict

log_stats()[source]

Log a summary of the stats.

update(duration)[source]

Update the stats with a new timing.