Clock readings versus physical waiting time

In a microcontroller simulation, a clock has a timing resolution of 4 μs: its reported time changes only in 4 μs steps. The reading is 0 μs at real time 0 μs, becomes 4 μs at real time 4 μs, becomes 8 μs at real time 8 μs, and continues in this pattern. Between updates, the reading remains unchanged.


Let C(t)C(t) be the clock reading at real time tt. A custom delay routine saves C(tstart)C(t_{\text{start}}) when called. It then checks the clock at the start time and every 1 μs afterward, returning at the first check satisfying


C(t)−C(tstart)≥10 μs.C(t)-C(t_{\text{start}})\geq10\ \mu\text{s}.


Treat these checks and the return as instantaneous. If a check coincides with a clock update, it reads the updated value. There is no clock rollover during these trials.


Complete the table with the real return time and physical waiting time for each start time. Enter exact integers in μs. Physical waiting time is measured from the real start time, rather than the saved clock reading.

TrialReal start time (μs)Real return time (μs)Physical waiting time (μs)
A80
B81
C82
D83

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Delay and Timing Functions Questions: