projector - delay function screws rpm measurement

It compiles fine in the version 010 that I am running, doesn't even need any of the #includes.
What version of the arduino release do you have?

And quite right, SET_PULSE_HIGH is from my application and should not have been in the code posted.