| re: Count Down
Hi,
[color=blue]
> I'm in the process of making a game right now, a very simple one, in
> which there is a time limit of when you can accomplish something. So
> what i want to do is make a 60 sec. countdown in my window. Could
> someone help me out? i thought of doing a loop that lasts around 1
> sec. but there are a few problems with that.
> 1. it will slow the rest of the program down
> 2. i can't be sure that its an exact second
> and 3. the loop will last longer on some computers than others.[/color]
this is not exactly a question on c++, the answer depends very much on
the platform or the gui you are using, so you might want to consider a
more specific newsgroup. Just two examples: on Unix/Linux, you can set
an alarm clock which sends a signal to your process after some time;
if you are using QT you can set a timer, I guess other gui's have a
similar feature.
Steffen |