summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-09-29 09:09:56 (GMT)
committerGitHub <noreply@github.com>2021-09-29 09:09:56 (GMT)
commit233b9da07d15f19c11e483e7ef7e3c73422e03f9 (patch)
tree08c0e818d225227f088851659a87f011810acb8b /Doc/whatsnew
parente046aabbe386fdf32bae6ffb7fae5ce479fd10c6 (diff)
downloadcpython-233b9da07d15f19c11e483e7ef7e3c73422e03f9.zip
cpython-233b9da07d15f19c11e483e7ef7e3c73422e03f9.tar.gz
cpython-233b9da07d15f19c11e483e7ef7e3c73422e03f9.tar.bz2
[docs] Use full names for time units (GH-28611)
Use "second", "millisecond", "microsecond", "nanosecond" instead of "sec", "ms", "msec", "us", "ns", etc.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.11.rst10
-rw-r--r--Doc/whatsnew/3.9.rst2
2 files changed, 6 insertions, 6 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 484aad7..d01d2e2 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -243,14 +243,14 @@ time
----
* On Unix, :func:`time.sleep` now uses the ``clock_nanosleep()`` or
- ``nanosleep()`` function, if available, which has a resolution of 1 ns
- (10\ :sup:`-9` sec), rather than using ``select()`` which has a resolution
- of 1 us (10\ :sup:`-6` sec).
+ ``nanosleep()`` function, if available, which has a resolution of 1 nanosecond
+ (10\ :sup:`-9` seconds), rather than using ``select()`` which has a resolution
+ of 1 microsecond (10\ :sup:`-6` seconds).
(Contributed by Livius and Victor Stinner in :issue:`21302`.)
* On Windows, :func:`time.sleep` now uses a waitable timer which has a
- resolution of 100 ns (10\ :sup:`-7` sec). Previously, it had a solution of 1 ms
- (10\ :sup:`-3` sec).
+ resolution of 100 nanoseconds (10\ :sup:`-7` seconds). Previously, it had
+ a resolution of 1 millisecond (10\ :sup:`-3` seconds).
(Contributed by Livius and Victor Stinner in :issue:`21302`.)
unicodedata
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index f1725e7..941fae5 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -671,7 +671,7 @@ time
On AIX, :func:`~time.thread_time` is now implemented with ``thread_cputime()``
which has nanosecond resolution, rather than
-``clock_gettime(CLOCK_THREAD_CPUTIME_ID)`` which has a resolution of 10 ms.
+``clock_gettime(CLOCK_THREAD_CPUTIME_ID)`` which has a resolution of 10 milliseconds.
(Contributed by Batuhan Taskaya in :issue:`40192`)
sys