it is possible, and I have some code started to do something similar (different application, but the methods would be the same). The issues that need to be addressed, is that even once you have hooked into the kernel to do your persistent timing, you need to write data out once in awhile to save your state, which adds a bit of a degree of dificulty to the process.