Countdown timer

BlitzMax Forums/BlitzMax Programming/Countdown timer

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Surely all you need to do is very simply:

1) Store the current Millisecs/1000 into a StartTime variable when you start the countdown

2) Calculate TimeElapsed=(Millisecs/1000)-StartTime

3) Calculate countdown with SecondsToWait-TimeElapsed