An Efficient Timing Algorithm for Drivers with Rest Periods (Lecture notes in computer science)