jade.utils.timing_utils

Utility functions for timing measurements.

Functions

get_time_duration_string(seconds)

Returns a string with the time converted to reasonable units.

timed_debug(func)

Decorator to measure and logger.debug a function's execution time.

timed_info(func)

Decorator to measure and logger.info a function's execution time.

track_timing(collector)

Decorator to track statistics on a function's execution time.

Classes

Timer(timer_stats, name)

Times a code block.

TimerStats(name)

Tracks timing stats for one code block.

TimerStatsCollector()

Collects statistics for timed code segments.