@@ -169,7 +169,7 @@ but use nanoseconds as Python ``int``.
169
169
For example, ``time.monotonic_ns() == int(time.monotonic() * 1e9) `` if
170
170
``monotonic() `` value is small enough to not lose precision.
171
171
172
- These functions are needed because they handle big timestamps, like
172
+ These functions are needed because they handle large timestamps, like
173
173
time.time() which uses the UNIX epoch as reference, and so their version
174
174
without the ``_ns `` suffix are likely to lose precision at the
175
175
nanosecond resolution.
@@ -182,8 +182,8 @@ Since the ``time.clock()`` function was deprecated in Python 3.3, no
182
182
183
183
Python has other functions handling time. No nanosecond variant was
184
184
proposed because their internal resolution is greater or equal to 1 us,
185
- or because their maximum value is a small enough to lose precision. For
186
- example, the maximum value of ``clock_getres() `` is likely to be 1
185
+ or because their maximum value is a small enough to not lose precision.
186
+ For example, the maximum value of ``clock_getres() `` should be 1
187
187
second.
188
188
189
189
Example of unchanged functions:
@@ -200,8 +200,8 @@ Example of unchanged functions:
200
200
201
201
See also the `Annex: Clocks Resolution in Python `_.
202
202
203
- New nanosecond flavor of these functions may be added later if an
204
- operating system adds a new function provided better resolution.
203
+ A new nanosecond flavor of these functions may be added later if an
204
+ operating system adds a new function providing better resolution.
205
205
206
206
207
207
Alternatives and discussion
@@ -354,7 +354,7 @@ Example of script ot measure the smallest difference between two
354
354
Linux
355
355
-----
356
356
357
- Linux (kernel 4.12 on Fedora 26):
357
+ Clocks resolution measured in Python on Fedora 26 (kernel 4.12 ):
358
358
359
359
==================== ==========
360
360
Function Resolution
@@ -387,7 +387,7 @@ Notes on resolutions:
387
387
Windows
388
388
-------
389
389
390
- Windows 8.1:
390
+ Clocks resolution measured in Python on Windows 8.1:
391
391
392
392
================= =============
393
393
Function Resolution
0 commit comments