@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
=> View ltratt@mastodon.social profile
text/gemini
This content has been proxied by September (3851b).