Implement timers in event loop.