Timer clear
Closed this issue · 2 comments
yunsonbai commented
i use the tMetrology.timer('sss')
after i use timer.clear(), the timer.min=0 always, No change
cyberdelia commented
clear
will actually reset the timer.
So you want either to use in a context manager or using update
:
timer = Metrology.timer('responses')
with timer:
do_something()
yunsonbai commented
I first use clear. then I use the update, but the timer.min has not changed, always 0