01

Locate an event or measure a gap

A calendar timestamp places an event on a shared time scale. An elapsed-time measurement describes the interval between two observations. Computer systems provide different facilities for these jobs. A wall clock may be adjusted as it synchronizes with an external reference. An interval counter is intended to support duration measurements without treating calendar corrections as work that took longer or shorter.

02

Imagine a corrected clock

Hypothetical example: a task starts just before a computer corrects its wall clock backward. Subtracting the displayed start time from the displayed finish time could suggest an implausible duration. A suitable monotonic clock avoids backward jumps within its supported measurement context. Its raw reading is not a date, and a reading from one machine cannot simply be compared with a reading from another machine as though they shared an origin.

03

Choose the right reference

For a local interval, use the platform’s documented elapsed-time facility. For events across machines, synchronized calendar timestamps may be useful, while still carrying uncertainty. Resolution is the granularity of readings; it does not guarantee accuracy. A display with many decimal places can look more certain than the underlying measurement deserves. Check the clock’s documented behavior across restarts, sleep and the intended platform. Record the unit and clock type alongside a measurement so that another reader can understand what the number means.

Reference: Microsoft: Acquiring high-resolution time stamps.

Continue reading
A shorter route to a record