I have an App that needs to log Data exactly on the quarter hour.(amongst other things)
We have had some power outages lately and the code as is, does not always restart gracefully depending on the outage(very quick off and then back on seems to be the culprit)
So I have installed a UPS and have set the PC to hibernate when the UPS has been on for 5 minutes.
I have re-written the way the code handles the timing by checking real time and resetting the timers .
This is fine and works perfectly when I restart the App but when tested by forcing PC into Hibernate and power back on the Timers seem to know how long they were off and set themselves !
so am I going bonkers ? can it be that the timers keep to their original schedule even though power was off for 5 minutes or more? and if so how does that work? I didn't know windows 7 was that clever lol
Mike
We have had some power outages lately and the code as is, does not always restart gracefully depending on the outage(very quick off and then back on seems to be the culprit)
So I have installed a UPS and have set the PC to hibernate when the UPS has been on for 5 minutes.
I have re-written the way the code handles the timing by checking real time and resetting the timers .
This is fine and works perfectly when I restart the App but when tested by forcing PC into Hibernate and power back on the Timers seem to know how long they were off and set themselves !
so am I going bonkers ? can it be that the timers keep to their original schedule even though power was off for 5 minutes or more? and if so how does that work? I didn't know windows 7 was that clever lol
Mike