Hook timers to event loop.