Archived

This topic is now archived and is closed to further replies.

siddim

timer question in simple program?

Recommended Posts

siddim    122
hi, i just start to read my book about openGL, i am planning to do a little game of tank in 2d(really basic one). I am just wondering how can i acces the time? is there a specific function that allow me to get the time in milliseconds since the begining of my program? thanks alot siddim Edited by - Siddim on February 5, 2002 4:44:41 PM

Share this post


Link to post
Share on other sites
zedzeek    529
check out sdl -> SDL_GetTicks()
also for win32 u can use GetTickCount()

http://uk.geocities.com/sloppyturds/gotterdammerung.html

Share this post


Link to post
Share on other sites