Countdown clock/timer in C

Started by
2 comments, last by dangerduo 21 years ago
Hi, I have to create a game for my data structure class and one of the requirement is to allow the player to fininsh the game in 10 minutes. I went online and look up on time.h, but i still haven''t figure a way in create a "clock" that updates each seconds.. Can somebody please help? I can''t use any windows.h so i have to stick with time.h thx
Advertisement
What about mmsystem.h? The most used time call is the millisec timer timeGetTime()

Mark
Bytten Independent Games Magazine
http://www.bytten.com
The function time() in time.h updates every second.


Qui fut tout, et qui ne fut rien
Invader''s Realm
I think hes missing the "game loop" system. Depending on the language and the game type, it can be an hassle to do it.

Say you are coding a simple console game and need input for instance, say a othello game... Going through a loop wouldb't be as practical as waiting for input.

[edited by - xMcBainx on March 31, 2003 5:26:12 PM]
I teleported home one night; With Ron and Sid and Meg; Ron stole Meggie's heart away; And I got Sydney's leg. <> I'm blogging, emo style

This topic is closed to new replies.

Advertisement