Minor optimization in Dispatcher
Improve accuracy of scheduled events

Scheduled events are pushed to the front of the Dispatcher task queue
Scheduler optimizations