File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,11 @@ The module defines the following functions and data items:
136
136
:c:func: `QueryPerformanceCounter `. The resolution is typically better than one
137
137
microsecond.
138
138
139
+ .. deprecated :: 3.3
140
+ The behaviour of this function depends on the platform: use
141
+ :func: `perf_counter ` or :func: `process_time ` instead, depending on your
142
+ requirements, to have a well defined behaviour.
143
+
139
144
140
145
.. function :: clock_getres(clk_id)
141
146
Original file line number Diff line number Diff line change @@ -1188,6 +1188,9 @@ Deprecated Python modules, functions and methods
1188
1188
the ANSI code page anymore and to support any filename.
1189
1189
* :issue: `13988 `: The :mod: `xml.etree.cElementTree ` module is deprecated. The
1190
1190
accelerator is used automatically whenever available.
1191
+ * The behaviour of :func: `time.clock ` depends on the platform: use the new
1192
+ :func: `time.perf_counter ` or :func: `time.process_time ` function instead,
1193
+ depending on your requirements, to have a well defined behaviour.
1191
1194
1192
1195
1193
1196
Deprecated functions and types of the C API
Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ Core and Builtins
81
81
Library
82
82
-------
83
83
84
+ - Issue #14309: Deprecate time.clock(), use time.perf_counter() or
85
+ time.process_time() instead.
86
+
84
87
- Issue #14428: Implement the PEP 418. Add time.get_clock_info(),
85
88
time.perf_counter() and time.process_time() functions, and rename
86
89
time.steady() to time.monotonic().
You can’t perform that action at this time.
0 commit comments