Added Clock parameter to scheduler and priority_timed_queue. Fix warnings in tests.