System uptime

Blitz3D Forums/Blitz3D Programming/System uptime

Heya, does anyone know of a tool to adjust the system uptime counter on XP... ie the value returned by Millisecs()

I want to increase it enough so that Millisecs() returns negative values just so I can debug any issues with my timing code.


Cheers!

You could always fake it by writing your own Millisecs() function. By using the same name for your own function, Blitz will call that instead of the native one. Use a 1 second timer to increment a value and make it wrap around to negative.

I'm guessing its just the point where it changes from positive to negative that you want to check out - I don't think the value its at when it resets is really significant, is it?