Original Post
I recently wrote a timer class for use in games, it''s pretty easy to use, just declare your timer, it uses QueryPerformanceCounter, but if it isn''t supported it uses timeGetTime instead. Just throw a call to BeginFrame at the beginning of your frame, and EndFrame at the end. It also keeps track of FPS and total time passed.
It seems to work pretty well, I''d just like some comments on how to make it better, but feel free to use it as you wish if you like it, as long as credit is given where credit is due. I tried to comment it pretty well, so you could learn from it if you wanted. Anyways, just tell me what you think.
get it at:
http://www.geocities.com/cheezcb/GTimer.zip
thanks
Cheez
------------------------------
If you were supposed to understand it, we wouldn''''t call it code