w3c / hr-time

High Resolution Time
https://w3c.github.io/hr-time/
Other
52 stars 24 forks source link

Durations actually need to have both endpoints coarsened. #144

Closed jyasskin closed 1 year ago

jyasskin commented 1 year ago

Or else subtracting durations that share a coarse endpoint winds up revealing the precise difference between other endpoints, which can build a high-precision timer.

This winds up requiring that we coarsen the estimated monotonic epoch time, for type compatibility. With low confidence, I think it's unobservable whether implementations actually do that...


Preview | Diff