-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
I was looking for a countdown timer with pause for a project I'm doing. Unfortunately, the countdown timer example doesn't work as written. The call to ResumeTimer in every loop resets the timer so it can never advance. This adjustment seems to work.
void ResumeTimer() // You can resume the timer if you ever stop it. { if (Paused) { Paused = false; time = _InternalClock(); } }
Also, I'm not sure why there's an if (Paused) inside the if (!Stop && !Paused) condition. It should never make it there, or is there something I'm missing?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels