A circuit for tracking a number of clock cycles between occurrences of an event of interest. The circuit includes logic for asserting a run signal responsive to a first occurrence of the event of interest, logic for deasserting the run signal responsive to a second occurrence of the event of interest, and logic for incrementing a count value on each clock cycle while the run signal is asserted.