Simplest way to make a timer

BlitzMax Forums/BlitzMax Beginners Area/Simplest way to make a 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.

I'm doing a simple Blackjack game and need a timer when dealing the cards, so there is about 0.3 sec between each card. I can't just pause the whole main loop as there is animation going on (i.e. UpdateAll() needs to run each frame). What's the best way to go about this?

The program is running a while/wend loop with a select/case statement which runs a Method at the time. I've got something that works, using a global timer variable, but it feels a bit clunky so I was wondering if there is a better way to do it?