Toot

Written by David Chisnall (Now with 50% more sarcasm!) on 2025-01-17 at 14:45

@ltratt Yup, monotonic is not for you then. That's what wall clock is for, but sleeping until a wall-clock time has elapsed has problems if the clock moves backwards (I had one computer boot with a BIOS bug that caused it to think it was in 2038 until after the first NTP sync, for example).

To do it right, you ideally need to listen to whatever notification fires when someone calls adjtime or equivalent interfaces, but failing that can wake up periodically on the monotonic clock and see what the current time is.

=> More informations about this toot | View the thread | More toots from david_chisnall@infosec.exchange

Mentions

=> View ltratt@mastodon.social profile

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113844233171937723
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
259.20422 milliseconds
Gemini-to-HTML Time
0.549034 milliseconds

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