Moat interview question

How would you implement a timer with closures in Javascript?