timer module¶
A timer to measure the time spent within a with statement.
- class gemseo.utils.timer.Timer(log_level=None)[source]¶
Bases:
objectA timer to measure the time spent within a
withstatement.Examples
- with Timer() as timer:
# do stuff
elapsed_time = timer.elapsed_time