add function on-time performance optimize

based on a constant length of interval as a on-time interval ,calculate
the offset of the schedule time to make the on-time performance larger