Advertisement

using the clock in windows

Started by July 22, 2002 11:35 AM
5 comments, last by nextgengamer 22 years, 3 months ago
Does anyone know how i would query the windows clock to get how much time has passes. I''m looking for a non-mfc way to do this because I am using direct x in my program. Any help would be appreciated. Thanks NextGenGamer
check out the timer class on my site:
joestuff.8m.com

My Homepage
How many Microsoft employees does it take to screw in a light bulb?
None, they just declare drakness as a new standard.
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
Advertisement
Try DWORD GetTickCount(VOID);
"...and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces."----------Scott Meyers, "Effective C++"
I''m trying to avoid GetTickCount() because it has caused problems for me with my animation. Isn''t there some sort of struct or function that will return the exact windows time
timeGetTime() is another one you should look into.
And QueryPerformanceCounter.
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Advertisement
If not concerned with speed, look up the SYSTEMTIME structure.
___________________________Freeware development:ruinedsoft.com

This topic is closed to new replies.

Advertisement