Created clock-based task scheduler.