Scheduler for managing time events