Comment Re: For / While in C (Score 1) 533
This would usually happen in (microcontroller-)hardware, not in code:
a hardware counter (running on a specified timebase) and a hardware interupt.
The code which would be in every watch would be the one for loading the counter, but it would not be the same in every watch, as it would differ depending on clock frequency and controller used.