Jul-07-2020, 07:05 PM
I would look at time.monotonic() and some related functions. They are designed to monotonically increase even if NTP is used to adjust the time. I don't know how they behave after a system reboot if time is adjusted before the operating system boots.