diff options
author | Henry Chen <tahafut@gmail.com> | 2019-01-15 10:29:21 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2019-01-15 10:29:21 (GMT) |
commit | 06f8b57212b2e2cd2e63af36cecdfa3075b324a2 (patch) | |
tree | 880de5fd278eb11f0b4b96ac0a14b6ecaade88ed | |
parent | 32ebd8508d4807a7c85d2ed8e9c3b44ecd6de591 (diff) | |
download | cpython-06f8b57212b2e2cd2e63af36cecdfa3075b324a2.zip cpython-06f8b57212b2e2cd2e63af36cecdfa3075b324a2.tar.gz cpython-06f8b57212b2e2cd2e63af36cecdfa3075b324a2.tar.bz2 |
bpo-35738: Update the example for timer.Timer.repeat(). (GH-11559)
Show correct number of repeats.
-rw-r--r-- | Doc/library/timeit.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/timeit.rst b/Doc/library/timeit.rst index 93ca940..197b8a7 100644 --- a/Doc/library/timeit.rst +++ b/Doc/library/timeit.rst @@ -292,7 +292,7 @@ The same can be done using the :class:`Timer` class and its methods:: >>> t.timeit() 0.3955516149999312 >>> t.repeat() - [0.40193588800002544, 0.3960157959998014, 0.39594301399984033] + [0.40183617287970225, 0.37027556854118704, 0.38344867356679524, 0.3712595970846668, 0.37866875250654886] The following examples show how to time expressions that contain multiple lines. |