Arduino or sensor speed problems?

Thanks for the quick reply. In most of my tests I have wheelrevs as "volatile". Unfortunately I have posted the one test sketch where it is not!

If one count is missed, that is if wheelrevs never equals sector 2, I will get a zero time for that sector. That seems to be what is happening.

Yes I agree about arrays. Would that make the sketch run faster?