timebudget icon indicating copy to clipboard operation
timebudget copied to clipboard

timebudget.reset() function to zero out data

Open leopd opened this issue 4 years ago • 4 comments

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.

leopd avatar Oct 23 '19 15:10 leopd

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?

leopd avatar Oct 30 '19 23:10 leopd

I'm gonna close this out, since the basic functionality is achieved.

leopd avatar Oct 31 '19 00:10 leopd

I found myself trying to call this method, forgetting that the functionality is folded into another method. So I think it should go in.

leopd avatar Nov 24 '19 04:11 leopd

I'll put this in v0.8 which I'm currently working on.

leopd avatar Jan 07 '20 18:01 leopd