STINNER Victor <vstin...@python.org> added the comment:
> Or would a different API that distinguishes between clocks that track during > suspend versus those that not be a better idea? Given that at least macOS and > Linux offer both variants (not sure about Windows) I don't think that all platforms provide a clock for Python time.perf_counter() which include suspend. So I'm not sure that it's useful to only change the behavior on macOS, and only depending on the macOS version (and macOS target version). Maybe a new clock is needed, clock which has a well defined behavior for system suspend, on any platform. Such clock may not be available on all platforms. FYI on Python 3.3, time.monotonic() was not available on all platforms. It became available on all platforms on Python 3.5. https://docs.python.org/dev/library/time.html#time.monotonic ---------- nosy: +njs _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41303> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com