I'm interested in creating a program on an atmega328p that will measure the time difference between two consecutive pushes on a momentary push button. The time between the two pushes can vary between a few seconds to a fraction of a second. I want the timer to always start at zero and time out if goes longer than a few seconds. I want the result to fit into an 8 bit value.
I'm thinking of using Timer/Counter2 in normal mode because I can use an external crystal to slow it down and TOV2 to increment another register every time it overflows. Does this make sense? Is it a good idea?