Countdown timer

Hey guys, I was checking out this countdown code http://www.cplusplus.com/reference/clibrary/ctime/clock.html to try and incorporate it in my game source code but unfortunately it can't seem to make it run simultaneously with it. The countdown always has to end for my game to begin. Any suggestions?
Last edited on
Perhaps, you should try threading
Threading? How does that work?
It is using "threads" to have multiple parts of your game run at the same time. I would suggest looking at the boost::thread library:

http://www.boost.org/doc/libs/1_36_0/doc/html/thread.html
Hold on.
If you're using a game library it might already have threading built in. Check its documentation first.
Thanks for the replies.

@helios
Actually, I'm not using any game libraries, it's just a simple brain teaser game I've written and want to add a time limit to it.

@firedraco
Right on, looks like that'd be the solution to my problem, thanks for link.
Topic archived. No new replies allowed.