Jump to content
Sign in to follow this  
anandchakru

TimerInit math

Recommended Posts

anandchakru

Hi,

How to calculate, what timerInit() function will return for a future date ? say I wanna know, what the timerInit() will return on (2010-03-10 19:00:00hours) how do I calculate it ?


[font="Book Antiqua"]Thanks`A[/font]

Share this post


Link to post
Share on other sites
Valik

You don't.

Edit: I guess I better be more clear. You don't because it's extremely stupid to do so. You should not use the value returned from TimerInit() for anything except passing to TimerDiff(). The value returned from TimerInit() does not survive reboots for one thing, so attempting to calculate a future date is only accurate so long as the machine is never restarted.

Edited by Valik

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.