My question is just theoretical so just consider it as it is.
Suppose we have a CPU which has access to a number of hardware counters/timers. We want to iterate over