Ending a range if clock difference is not 1