Definition
The quantization error of a measured interval is the difference between the length of an interval computed from two counter readings and the true length of that interval. It exists because a counter shows only whole ticks, a tick being the time the counter takes to advance by one, so each reading rounds the true time to a tick boundary. When both readings come from one counter that rounds down, the error is greater than minus one tick and less than plus one tick.
Where it fits
Main entry: Counter quantization (§11.35).
The entry on counter quantization derives that bound. In short, measure time in ticks and let the true start be and the true end be . A counter that rounds down reads and , where means rounded down to a whole number. Each reading loses a fraction of a tick, and the error of the interval is the fraction lost at the start minus the fraction lost at the end. For and the true interval is 1.2 ticks, the readings are 0 and 2, and the error is tick.
This entry adds what the bound means for a plotted point, which is often the mean of many intervals. Whether the fractional part of a mean carries information depends on where each start falls inside a tick. If that position is random and evenly spread from one repetition to the next, a true length of 1.2 ticks is read as 2 in 20% of the repetitions and as 1 in 80%, so the mean of many readings approaches ticks. With 100 independent repetitions that mean has a standard error §11.15, its typical distance from 1.2, of tick. If the measured event is synchronized with the counter, every repetition starts at the same position and gives the same reading, and averaging recovers nothing.
Limits and common mistakes
A counter being digital does not make the start positions random. Check whether the measured event is triggered by the clock that drives the counter.
Questions answered
Why can two timings differ by less than a tick?
Two timings can differ by less than a tick when each is a summary of several measurements, because a summary of whole numbers need not be a whole number. A tick is the smallest step of the counter, so every measured interval is a whole number of ticks. Two intervals of 1 and 2 ticks have a mean of ticks. Two intervals of 1 and 1 tick have a mean of 1 tick. The two means differ by half a tick although no reading contained a fraction.
Such a difference can reflect a real difference in duration when each measurement starts at a random position inside a tick and the repetitions are many. A true duration of 1.2 ticks then reads 2 in about 20% of the repetitions and 1 in the rest, and the mean of many readings comes close to 1.2. If the measured event is synchronized with the counter, every repetition of one duration gives the same reading, and the means carry no information finer than a tick. In neither case does a mean reveal the true length of one measurement: a single reading of 2 ticks says only that the true length lies between 1 and 3 ticks.
Related entries: Median (§11.13), Standard error (§11.15), Resolution versus precision versus accuracy (§11.34), Clock conversion, resolution, and accuracy (§18.1.2).