8000 Time doc: documentation that the CLOCK_* constants and clock_*() func… · python/cpython@ca6e40f · GitHub
[go: up one dir, main page]

Skip to content

Commit ca6e40f

Browse files
committed
Time doc: documentation that the CLOCK_* constants and clock_*() functions are
not always available.
1 parent 4aff7ed commit ca6e40f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Doc/library/time.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,20 +141,26 @@ The module defines the following functions and data items:
141141

142142
Return the resolution (precision) of the specified clock *clk_id*.
143143

144+
Availability: Unix.
145+
144146
.. versionadded:: 3.3
145147

146148

147149
.. function:: clock_gettime(clk_id)
148150

149151
Return the time of the specified clock *clk_id*.
150152

153+
Availability: Unix.
154+
151155
.. versionadded:: 3.3
152156

153157

154158
.. function:: clock_settime(clk_id, time)
155159

156160
Set the time of the specified clock *clk_id*.
157161

162+
Availability: Unix.
163+
158164
.. versionadded:: 3.3
159165

160166

@@ -164,6 +170,8 @@ The module defines the following functions and data items:
164170
hardware source, and may give close to nanosecond resolution. CLOCK_HIGHRES
165171
is the nonadjustable, high-resolution clock.
166172

173+
Availability: Solaris.
174+
167175
.. versionadded:: 3.3
168176

169177

@@ -172,6 +180,8 @@ The module defines the following functions and data items:
172180
Clock that cannot be set and represents monotonic time since some
173181
unspecified starting point.
174182

183+
Availability: Unix.
184+
175185
.. versionadded:: 3.3
176186

177187

@@ -189,6 +199,8 @@ The module defines the following functions and data items:
189199

190200
High-resolution per-process timer from the CPU.
191201

202+
Availability: Unix.
203+
192204
.. versionadded:: 3.3
193205

194206

@@ -197,13 +209,17 @@ The module defines the following functions and data items:
197209
System-wide real-time clock. Setting this clock requires appropriate
198210
privileges.
199211

212+
Availability: Unix.
213+
200214
.. versionadded:: 3.3
201215

202216

203217
.. data:: CLOCK_THREAD_CPUTIME_ID
204218

205219
Thread-specific CPU-time clock.
206220

221+
Availability: Unix.
222+
207223
.. versionadded:: 3.3
208224

209225

0 commit comments

Comments
 (0)
0