Timer

So I just made a pretty simple little game, and I am trying to make it that if you don't complete a certain task by the end of an amount of time, then you lose. Otherwise you get to play again after time is up. How do I, for example, end a while loop after a minute has elapsed since the start/restart of program?
There is the C time library which provides some timing functions:
http://www.cplusplus.com/reference/clibrary/ctime/
Oh sorry guess I didn't notice that :P. Thanks I'll see if I can put that all together.
Last edited on
Topic archived. No new replies allowed.