Jump to content
  • Advertisement


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


Countdown clock/timer in C

This topic is 5654 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post

Link to post
Share on other sites
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]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!