Given a range of values how to time certain values within the range