[LEAPSECS] Go API for monotonitc elapsed time measurements

Poul-Henning Kamp phk at phk.freebsd.dk
Fri Feb 3 13:33:37 EST 2017


--------
In message <alpine.DEB.2.11.1702031510300.23062 at grey.csi.cam.ac.uk>, Tony Finch writes:

>This is an interesting proposal for fixing the Cloudflare leap second bug,
>so that time interval calculations do sensible things even when the clock
>is reset, without making an incompatible change to the existing APIs.
>
>https://github.com/golang/proposal/blob/master/design/12914-monotonic.md

We have talked about something similar inside Varnish, for the same reasons.

Problem is that many of the POSIX apis are stupid about time (but we
knew that already), in our case most importantly pthread_cond_timedwait().

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the LEAPSECS mailing list