What is Nostr?
npub1dvs…ttxk
2025-02-08 07:26:54

npub1dv…7ttxk on Nostr: How much do #Python clocks progress in "60 seconds"? CLOCK_BOOTTIME 60.6 ...

How much do #Python clocks progress in "60 seconds"?

CLOCK_BOOTTIME 60.6
CLOCK_MONOTONIC 60.6
CLOCK_MONOTONIC_RAW 56.0
CLOCK_PROCESS_CPUTIME_ID 0.000952
CLOCK_REALTIME 60.6
CLOCK_TAI 60.6
CLOCK_THREAD_CPUTIME_ID 0.000952

Only CLOCK_MONOTONIC_RAW is tracking the hardware #clock correctly.

So if you actually want to measure #time accurately, use that one.

#linux #monotonic #ntp #rtc
Author Public Key
npub1dvsuqmzh4jsjerdszplqvxmgcxl8fwuknn7dd76m978uq2ac9t8qk7ttxk