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
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