HR Timer & timed input

Here it is, can you take a look at it John, we can discuss then how to test it.