timebudget
timebudget copied to clipboard
timebudget.reset() function to zero out data
Like #3 (report_data) somebody would probably want this, and it will definitely make testing easier. In fact proper functional testing probably requires this and #3 . Would mitigate the need for #4 (moving-averages) since you could just reset the counters to get current info.
This is somewhat addressed in 38752f378d6d6973215068af6b422d2422ebd4b1 in that you can call timebudget.report(reset=True)
and reset the statistics that way. Maybe this is sufficient and we don't need a dedicated method?
I'm gonna close this out, since the basic functionality is achieved.
I found myself trying to call this method, forgetting that the functionality is folded into another method. So I think it should go in.
I'll put this in v0.8 which I'm currently working on.