diff options
author | Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com> | 2019-01-10 16:56:38 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2019-01-10 16:56:38 (GMT) |
commit | 572168a016ece1b7346695eb7289190c46f1ae55 (patch) | |
tree | 4e158385ec00f42a84df8bc91a4f9d911bc487ee /Doc | |
parent | 89c4f90df97f6039325e354167e8f507bf199fd9 (diff) | |
download | cpython-572168a016ece1b7346695eb7289190c46f1ae55.zip cpython-572168a016ece1b7346695eb7289190c46f1ae55.tar.gz cpython-572168a016ece1b7346695eb7289190c46f1ae55.tar.bz2 |
bpo-35702: Add new identifier time.CLOCK_UPTIME_RAW for macOS 10.12 (GH-11503)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/time.rst | 12 | ||||
-rw-r--r-- | Doc/whatsnew/3.8.rst | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Doc/library/time.rst b/Doc/library/time.rst index 0ffce47..892ed13 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -815,9 +815,21 @@ These constants are used as parameters for :func:`clock_getres` and .. versionadded:: 3.7 +.. data:: CLOCK_UPTIME_RAW + + Clock that increments monotonically, tracking the time since an arbitrary + point, unaffected by frequency or time adjustments and not incremented while + the system is asleep. + + .. availability:: macOS 10.12 and newer. + + .. versionadded:: 3.8 + + The following constant is the only parameter that can be sent to :func:`clock_settime`. + .. data:: CLOCK_REALTIME System-wide real-time clock. Setting this clock requires appropriate diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index c592f00..370ef46 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -234,6 +234,12 @@ Added method :meth:`~tkinter.Canvas.moveto` in the :class:`tkinter.Canvas` class. (Contributed by Juliette Monsel in :issue:`23831`.) +time +---- + +Added new clock :data:`~time.CLOCK_UPTIME_RAW` for macOS 10.12. +(Contributed by Joannah Nanjekye in :issue:`35702`.) + unicodedata ----------- |