AvrClock: timer optimizations