Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
06f8b572
Commit
06f8b572
authored
Jan 15, 2019
by
Henry Chen
Committed by
Serhiy Storchaka
Jan 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-35738: Update the example for timer.Timer.repeat(). (GH-11559)
Show correct number of repeats.
parent
32ebd850
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Doc/library/timeit.rst
Doc/library/timeit.rst
+1
-1
No files found.
Doc/library/timeit.rst
View file @
06f8b572
...
...
@@ -292,7 +292,7 @@ The same can be done using the :class:`Timer` class and its methods::
>>> t.timeit()
0.3955516149999312
>>> t.repeat()
[0.401
93588800002544, 0.3960157959998014, 0.39594301399984033
]
[0.401
83617287970225, 0.37027556854118704, 0.38344867356679524, 0.3712595970846668, 0.37866875250654886
]
The following examples show how to time expressions that contain multiple lines.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment