Ask a better questionLesson 04 of 30 · 5 min

What does your timer miss?

Explain how resolution and calibration affect a measured difference.

A measurement procedure turns an event into a number. Its resolution is the smallest change it can distinguish. A timer rounded to the nearest 10 ms cannot reliably separate two very short durations that fall into the same rounding bin.

Calibration compares an instrument with a reference. An offset that adds 5 ms to every reading makes absolute times wrong; it may cancel in a difference if it is truly the same in both conditions. A changing offset will not cancel so neatly.

The example starts from invented reference durations and rounds them. Repeating a rounded reading cannot recover information the instrument never recorded. Timing a batch can help with resolution, but dividing batch time by operations estimates an average under that batching procedure, not each operation's latency.

See the reasoning
Reference (ms)Displayed (ms)10141822241020
Reference (ms)Displayed (ms)10141822241020
Authored rounding model. Reference durations 11–14 ms all display as 10 ms; 21–22 ms display as 20 ms. Repeating a rounded reading does not recover the discarded resolution.

Can two distinct reference durations produce the same displayed reading?

Write a prediction (optional)

Run the prepared example

This page puts the example in the Python editor. Select Run Python with the code unchanged.

Authored instrument model

Editor tools
About Python ↗

Ctrl+Enter or ⌘+Enter runs the code.

What to compare

Find 11, 12, 13 and 14 in Reference (ms) and compare their entries in Displayed (ms). Then compare the gap between the first two reference times with the gap between their offset readings.

Published example output

The site ran the original code to produce this reference. Build environment ↗

Reference (ms): [11 12 13 14 21 22]
Displayed (ms): [10. 10. 10. 10. 20. 20.]
With offset (ms): [16 17 18 19 26 27]

Four different reference durations round to 10 ms. A constant offset changes absolute times by 5 ms and leaves the gap between any two unrounded times unchanged.

Change and run again

In the Python editor, change resolution_ms from 10 to 1 and select Run Python. Compare Displayed (ms) with the first run. Next change offset_ms = 5 to offset_ms = np.array([0, 1, 2, 3, 4, 5]) and run again. Compare the gap between the first two entries in Reference (ms) and With offset (ms). Does a varying offset preserve that gap? Return to the Python editor

What this example supports. Rounding is an authored instrument model. Real timers can also have overhead, scheduling delays and drift.

Try a fresh case

A sensor consistently reads 2 °C too high. Repeating it 1,000 times will mainly do what?

Choose an answer

Hints for this question
  1. Separate a random fluctuation from a systematic offset.
  2. Ask what changes between repetitions.
Your notes