Skip to main content
gamedev.net
🔒 Locked

Try my timer class

Started by Cheez 0 replies 400+ views
Original Post
Cheez
Cheez
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
Cheez------------------------------If you were supposed to understand it, we wouldn''t call it code
AmmoSponge
AmmoSponge
I will look at it and try it out. If I forget to respond it means I have stolen your code and headed for Mexico! Catch me if you can! Bwa ha ha!

But really I will try it out and tell you how it works. : )

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.