Monotonic Clock Offset Sync

Estimate a peer's clock offset from ping/pong round trips — take the peer's own processing time out before halving, weight each sample against the best round trip seen, insist the local time source is monotonic, and fall back to the uncorrected value while the estimate is not yet usable. Use when several devices must agree what time it is before they can agree where a stream is, when a group drifts apart on a congested network, or when a position correction jumps after the device adjusts its clock.

maxrave-dev 41aaddc 7.6 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/monotonic-clock-offset-sync commit 41aaddcd57

Frequently asked questions

npx skillmds@latest add maxrave-dev/monotonic-clock-offset-sync