Ancestors

Written by Laurence Tratt on 2025-01-16 at 19:40

CLOCK_MONOTONIC on Linux is the gift that keeps giving (to me, at least). In the past it wasn't monotonic -- that's been fixed so the name is at least no longer wrong.

But it turns out that it doesn't advance over suspend/resume, so it is monotonic, but not in a useful manner. For that, one has to use use CLOCK_BOOTTIME...

=> More informations about this toot | More toots from ltratt@mastodon.social

Toot

Written by Laurence Tratt on 2025-01-16 at 19:44

The Rust boot-time crate appears to package this up in a sensible way, so I've adjusted pizauth to deal with this particular instance of bonkers clocks. Testing on different platforms is most welcome! https://github.com/ltratt/pizauth/pull/48

=> More informations about this toot | More toots from ltratt@mastodon.social

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113839746260855189
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
258.415648 milliseconds
Gemini-to-HTML Time
0.372196 milliseconds

This content has been proxied by September (3851b).