@@ -263,6 +263,14 @@ I implemented a wrapping subtraction, semed to be the easiest way to do it witho
// How long time would lines 16/17 take to run to trigger the error?
//
// [your answer here]
/*
Well, the error only occurs right when the counter wraps.
It would occure if the code that we're trying to measure takes a long time to complete.
For example; if we're running at 8MHz, it would take about 537 seconds for the counter to wrap around. This is a very rare occurence in embedded systems.
The other case this error could occure is if we start and stop measuring right before and after the wrapping. But this is also very uncommon.
Because of the rarity of these two examples, the error is very hard to detect when doing manual testing.
*/
//
// Of course this is a contrived example, and may not occur in practice.
// But, it represents a class of problems/errors/bugs that is