aardappel / procrastitracker

a Windows time tracking application
http://strlen.com/procrastitracker/
483 stars 53 forks source link

Storing times of each recorded interval #91

Open AntonBogun opened 2 years ago

AntonBogun commented 2 years ago

Would it theoretically be possible to make procrastitracker save individual day files with information for the time of each recorded 5-second interval? From my calculations, using RLE and 16bit numbers to store IDs of a given window this could be quite realistic and wouldn't use excessive amounts of memory.

aardappel commented 2 years ago

That was originally left out to keep the data compact, yes.

It wouldn't be too hard to add in terms of data. Currently time for one particular app/url/doc is tracker in a list of days, each of which has a total time and a start time. We'd have to change that such that we'd allow multiple such day record per day, so that it can represent multiple sections of usage.

The harder part is changing the code to go along with this, since there is so much code that assumes there's at most 1 record per day.