implementing an hours counting algorithm
I am trying to implement an algorithm which will store the number of hours run of a product using a timer, I have this so far
set timer to time 1000 x 1ms
when count == 0
The ISR would do:
if var_1s == 3600
This would need to continue up to var_10000h, so how do I keep track of all the variables and know when I need to roll each one over and ensure that the var_1s keeps getting incremented whatever?
Any suggestions gratefully received