Using Time
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
load up the help docs for your compiler and do a search for the secret word...''time''.
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
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement