Countdown Timer


#1

Looking for a countdown timer (or how to write one) where I don't count down to a date. I just want something where I can say something like "countdown (always to 0) from x seconds" and preferably something where I can have multiple countdowns. I'm most familiar with python but whichever language is best for it is good. All help appreciated. Thanks!


#2

Python has a sleep() built-in that can be run inside a loop. To create multiple timers build it into a class and create instances is what comes to mind.

In JavaScript we have to write a function and use setTimeOut. It's a bit more detailed. Likewise, custom object instances seem like the way to get multiple timers going. Expect a major performance hit, though.

I'm only seeding the tip jar, mind.