Avr counter program. At other hand timers can run asynchronously with AVR core.