gustaf.utils.tictoc.Tic#

class gustaf.utils.tictoc.Tic(title='untitled', log_level='debug')[source]#

Bases: GustafBase

Timer class for easier time measurement.

Methods

Tic.now

perf_counter() -> float

Tic.summary([log, print_])

Prints measurement summary to the log.

Tic.toc([name, log])

Adds now to the measurements.