Add periodic timer to event loop.