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

johnnydiode:
What are code tags?

You used them in your first post so some part of your brain knows what they are.

@septillion was overzealous when he created his signature. Everything below the second horizontal line can be ignored.