Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
572168a0
Commit
572168a0
authored
Jan 10, 2019
by
Joannah Nanjekye
Committed by
Victor Stinner
Jan 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-35702: Add new identifier time.CLOCK_UPTIME_RAW for macOS 10.12 (GH-11503)
parent
89c4f90d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
0 deletions
+22
-0
Doc/library/time.rst
Doc/library/time.rst
+12
-0
Doc/whatsnew/3.8.rst
Doc/whatsnew/3.8.rst
+6
-0
Misc/NEWS.d/next/Library/2019-01-10-14-03-12.bpo-35702._ct_0H.rst
...S.d/next/Library/2019-01-10-14-03-12.bpo-35702._ct_0H.rst
+1
-0
Modules/timemodule.c
Modules/timemodule.c
+3
-0
No files found.
Doc/library/time.rst
View file @
572168a0
...
...
@@ -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
...
...
Doc/whatsnew/3.8.rst
View file @
572168a0
...
...
@@ -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
-----------
...
...
Misc/NEWS.d/next/Library/2019-01-10-14-03-12.bpo-35702._ct_0H.rst
0 → 100644
View file @
572168a0
The :data:`time.CLOCK_UPTIME_RAW` constant is now available for macOS 10.12.
\ No newline at end of file
Modules/timemodule.c
View file @
572168a0
...
...
@@ -1806,6 +1806,9 @@ PyInit_time(void)
#ifdef CLOCK_UPTIME
PyModule_AddIntMacro
(
m
,
CLOCK_UPTIME
);
#endif
#ifdef CLOCK_UPTIME_RAW
PyModule_AddIntMacro
(
m
,
CLOCK_UPTIME_RAW
);
#endif
#endif
/* defined(HAVE_CLOCK_GETTIME) || defined(HAVE_CLOCK_SETTIME) || defined(HAVE_CLOCK_GETRES) */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment