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