🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Using Time
How do i use time in my game??? Are there any special functions or what?? thanks.
NiBLiTz - ALL that is needed
With win32 you have GetTickCount() and SetTimer() for low resolution timing. For higher resolution, check out timeGetTime and the other timer functions in mmsystem.h
Notwen
Notwen
In linux, time(time_t *t) is used to find the current time in seconds. ftime(struct timeb *tb) is used to find the current time in milliseconds. The select statement can also be used as a high resolution timer.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement