By Ether DataRequest data sample
Interactive publication
Back to the catalogue
ClocksCase 04 of 10

Monotonic vs wall clock

A monotonic clock (performance.now(), CLOCK_MONOTONIC) measures elapsed time from an arbitrary origin and has no fixed epoch, so it cannot be converted to UTC or a slot. Mixing monotonic and wall-clock timestamps silently corrupts latency analysis.

Class
Case to account for
Affects
1 conversion
01

Detection

Clock model is monotonic, or a duration and an absolute time are stored in the same column.

02

Mitigation

01
Never map a monotonic reading to UTC; keep it as a duration relative to a wall-clock anchor captured once.
03

Affected conversions

Timestamp + zonehour-of-week slot
OPEN