- The frequency counter can be used in two ways: Interrupt triggered by the input signal or polled regularly in a loop.
- The measurement can be done in milli seconds or micro seconds.
- We can use a debounce time if the input is a mechanically switch.
http://www.avdweb.nl/arduino/libraries/frequency-period-counter.html