system clock?
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.crosswinds.net/~druidgames/resist.jpg)
http://www.gdarchive.net/druidgames/
"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.crosswinds.net/~druidgames/resist.jpg)
http://www.gdarchive.net/druidgames/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement