Reset system uptime
Posted on 2003-11-13
I've got an application on a windows XP machine (XP embedded) that makes use of the windows time functions getTickCount and timeGetTime. These return the amount of time that has elapsed since the machine booted and they roll over every 49.7 days. The rollover might cause problems with my application. I've reviewed the code and everything looks right, but I need to be sure.
What I need is some way EXTERNAL to my program to fake a rollover. Basically set my clock to some time just before a rollover then start my app and let the rollover occur. Or even be able to boot the OS with the time already close to rolling over.
I suspect that this is impossible, but it would make my life a LOT easier if there were a way to do it.