RPM with other inputs

dc42:
a better way is to measure and store the time interval between interrupts, and calculate the rpm from that interval.

It looks to me as if that is what the code aims to do (but timing twenty ish revolutions rather than one).