added sched code to time example