icecube.ml_suite.time_boss module¶
- class icecube.ml_suite.time_boss.TimeBoss(name: str)¶
Bases:
object
Implements timing via context managers.
Usage:
with TimeBoss("timer1"): # computation with TimeBoss("timer2"): # more computation TimeBoss.result()
- classmethod plot_results()¶
- classmethod result(unit='s')¶
Print the results of all timers
- unit_conv = {'ms': 1000.0, 'mus': 1000000.0, 's': 1}¶