🎉 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

Started by
3 comments, last by NiBLiTz 24 years, 5 months ago
How do i use time in my game??? Are there any special functions or what?? thanks. NiBLiTz - ALL that is needed
NiBLiTz - ALL that is needed
Advertisement
load up the help docs for your compiler and do a search for the secret word...''time''.
William Reiach - Human Extrodinaire

Marlene and Me


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
Notwenwww.xbox.com
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.
ok thanks, i''ll figure it out from there then.

NiBLiTz - ALL that is needed
NiBLiTz - ALL that is needed

This topic is closed to new replies.

Advertisement