Advertisement

system clock?

Started by March 08, 2001 09:47 PM
0 comments, last by MARS_999 23 years, 11 months ago
How do I use the system clock to lets say give me secs or millisecs. What I am trying to do is use the system clock to help calculate bulletdrop for a game''s engine. I need it to start at zero everytime and then go till the bullet hits x of zero. x will b the ground and y is the height of the bullet at any given time. Anyone got any ideas? Windows SUCKS! Deal with it! if(windows crashes) { run linux } else { yea right!! }
You can use timeGetTime or GetTickCount to return the number of milliseconds that have passed since Windows was booted up. Or use QueryPerformanceTimer for a more accurate solution (not everyone has a performace timer though).

"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
Resist Windows XP''s Invasive Production Activation Technology!
http://www.gdarchive.net/druidgames/

This topic is closed to new replies.

Advertisement