@@ -162,24 +162,24 @@ The module defines the following functions and data items:
162162
163163.. class :: clock_info
164164
165- Clock information object created by :func: `get_clock_info `.
165+ Clock information object returned by :func: `get_clock_info `.
166166
167167 .. attribute :: implementation
168168
169- name of the underlying C function used to get the clock value
169+ The name of the underlying C function used to get the clock value.
170170
171171 .. attribute :: is_monotonic
172172
173- ``True `` if the clock cannot go backward, ``False `` otherwise
173+ ``True `` if the clock cannot go backward, ``False `` otherwise.
174174
175175 .. attribute :: is_adjusted
176176
177- ``True `` if the clock can be adjusted (e.g. by a NTP daemon),
178- `` False `` otherwise
177+ ``True `` if the clock can be adjusted (e.g. by a NTP daemon), `` False ``
178+ otherwise.
179179
180180 .. attribute :: resolution
181181
182- Resolution of the clock in seconds (:class: `float `)
182+ The resolution of the clock in seconds (:class: `float `).
183183
184184 .. versionadded :: 3.3
185185
@@ -196,7 +196,7 @@ The module defines the following functions and data items:
196196.. data :: CLOCK_HIGHRES
197197
198198 The Solaris OS has a CLOCK_HIGHRES timer that attempts to use an optimal
199- hardware source, and may give close to nanosecond resolution. CLOCK_HIGHRES
199+ hardware source, and may give close to nanosecond resolution. CLOCK_HIGHRES
200200 is the nonadjustable, high-resolution clock.
201201
202202 Availability: Solaris.
@@ -206,8 +206,8 @@ The module defines the following functions and data items:
206206
207207.. data :: CLOCK_MONOTONIC
208208
209- Clock that cannot be set and represents monotonic time since some
210- unspecified starting point.
209+ Clock that cannot be set and represents monotonic time since some unspecified
210+ starting point.
211211
212212 Availability: Unix.
213213
@@ -235,7 +235,7 @@ The module defines the following functions and data items:
235235
236236.. data :: CLOCK_REALTIME
237237
238- System-wide real-time clock. Setting this clock requires appropriate
238+ System-wide real-time clock. Setting this clock requires appropriate
239239 privileges.
240240
241241 Availability: Unix.
@@ -268,15 +268,14 @@ The module defines the following functions and data items:
268268.. function :: get_clock_info(name)
269269
270270 Get information on the specified clock as a :class: `clock_info ` object.
271+ Supported clock names and the corresponding functions to read their value
272+ are:
271273
272- Supported clock names:
273-
274-
275- * ``'clock' ``: :func: `time.clock `
276- * ``'monotonic' ``: :func: `time.monotonic `
277- * ``'perf_counter' ``: :func: `time.perf_counter `
278- * ``'process_time' ``: :func: `time.process_time `
279- * ``'time' ``: :func: `time.time `
274+ * ``'clock' ``: :func: `time.clock `
275+ * ``'monotonic' ``: :func: `time.monotonic `
276+ * ``'perf_counter' ``: :func: `time.perf_counter `
277+ * ``'process_time' ``: :func: `time.process_time `
278+ * ``'time' ``: :func: `time.time `
280279
281280 .. versionadded :: 3.3
282281
@@ -312,16 +311,16 @@ The module defines the following functions and data items:
312311
313312.. function :: monotonic()
314313
315- Monotonic clock, i.e. cannot go backward. It is not affected by system
316- clock updates . The reference point of the returned value is undefined, so
317- that only the difference between the results of consecutive calls is valid
318- and is a number of seconds .
314+ Return the value (in fractional seconds) of a monotonic clock, i.e. a clock
315+ that cannot go backwards . The clock is not affected by system clock updates.
316+ The reference point of the returned value is undefined, so that only the
317+ difference between the results of consecutive calls is valid .
319318
320319 On Windows versions older than Vista, :func: `monotonic ` detects
321- :c:func: `GetTickCount ` integer overflow (32 bits, roll-over after 49.7
322- days). It increases an internal epoch (reference time by) 2\ :sup: `32` each
323- time that an overflow is detected. The epoch is stored in the process-local
324- state and so the value of :func: `monotonic ` may be different in two Python
320+ :c:func: `GetTickCount ` integer overflow (32 bits, roll-over after 49.7 days).
321+ It increases an internal epoch (reference time by) 2\ :sup: `32` each time
322+ that an overflow is detected. The epoch is stored in the process-local state
323+ and so the value of :func: `monotonic ` may be different in two Python
325324 processes running for more than 49 days. On more recent versions of Windows
326325 and on other operating systems, :func: `monotonic ` is system-wide.
327326
@@ -332,21 +331,22 @@ The module defines the following functions and data items:
332331
333332.. function :: perf_counter()
334333
335- Performance counter with the highest available resolution to measure a short
336- duration. It does include time elapsed during sleep and is system-wide.
337- The reference point of the returned value is undefined, so that only the
338- difference between the results of consecutive calls is valid and is a number
339- of seconds .
334+ Return the value (in fractional seconds) of a performance counter, i.e. a
335+ clock with the highest available resolution to measure a short duration. It
336+ does include time elapsed during sleep and is system-wide. The reference
337+ point of the returned value is undefined, so that only the difference between
338+ the results of consecutive calls is valid .
340339
341340 .. versionadded :: 3.3
342341
343342
344343.. function :: process_time()
345344
346- Sum of the system and user CPU time of the current process. It does not
347- include time elapsed during sleep. It is process-wide by definition. The
348- reference point of the returned value is undefined, so that only the
349- difference between the results of consecutive calls is valid.
345+ Return the value (in fractional seconds) of the sum of the system and user
346+ CPU time of the current process. It does not include time elapsed during
347+ sleep. It is process-wide by definition. The reference point of the
348+ returned value is undefined, so that only the difference between the results
349+ of consecutive calls is valid.
350350
351351 .. versionadded :: 3.3
352352
0 commit comments