Consider the monotonic clock defined in pytime.c. Whether or not it tracks time across system suspend is implementation-defined (and not documented either). PEP 418 [1] has details along with the raw system APIs used.
We could introduce two new monotonic clocks that distinguish between whether they track across system suspend or not. These clocks exist on at least Windows, macOS, and Linux. [1] https://www.python.org/dev/peps/pep-0418/#id56 — Rishav P.S.: This is my first time submitting to the Python mailing lists. Suggestions for improvement are appreciated :) _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/KQV2PB5OK6ULVZYPTSKRSQ45HYDPOD6Q/ Code of Conduct: http://python.org/psf/codeofconduct/