Measure clock cycles with the timer