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
34f9d632
Commit
34f9d632
authored
Apr 03, 2012
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add time.CLOCK_HIGHRES constant, needed on Solaris
parent
73e1d806
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
Doc/library/time.rst
Doc/library/time.rst
+9
-0
Modules/timemodule.c
Modules/timemodule.c
+3
-0
No files found.
Doc/library/time.rst
View file @
34f9d632
...
...
@@ -159,6 +159,15 @@ The module defines the following functions and data items:
.. versionadded:: 3.3
.. data:: CLOCK_HIGHRES
The Solaris OS has a CLOCK_HIGHRES timer that attempts to use an optimal
hardware source, and may give close to nanosecond resolution. CLOCK_HIGHRES
is the nonadjustable, high-resolution clock.
.. versionadded:: 3.3
.. data:: CLOCK_MONOTONIC
Clock that cannot be set and represents monotonic time since some
...
...
Modules/timemodule.c
View file @
34f9d632
...
...
@@ -962,6 +962,9 @@ PyInit_timezone(PyObject *m) {
#ifdef CLOCK_MONOTONIC_RAW
PyModule_AddIntMacro
(
m
,
CLOCK_MONOTONIC_RAW
);
#endif
#ifdef CLOCK_HIGHRES
PyModule_AddIntMacro
(
m
,
CLOCK_HIGHRES
);
#endif
#ifdef CLOCK_PROCESS_CPUTIME_ID
PyModule_AddIntMacro
(
m
,
CLOCK_PROCESS_CPUTIME_ID
);
#endif
...
...
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