Advertisement

Using Time

Started by January 18, 2000 04:19 PM
3 comments, last by NiBLiTz 24 years, 11 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
load up the help docs for your compiler and do a search for the secret word...''time''.
William Reiach - Human Extrodinaire

Marlene and Me


Advertisement
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