Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions 9 Doc/library/timeit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ See also Tim Peters' introduction to the "Algorithms" chapter in the second
edition of *Python Cookbook*, published by O'Reilly.


Basic Examples
Basic examples
--------------

The following example shows how the :ref:`timeit-command-line-interface`
Expand Down Expand Up @@ -56,7 +56,7 @@ repetitions only when the command-line interface is used. In the

.. _python-interface:

Python Interface
Python interface
----------------

The module defines three convenience functions and a public class:
Expand Down Expand Up @@ -206,7 +206,7 @@ The module defines three convenience functions and a public class:

.. _timeit-command-line-interface:

Command-Line Interface
Command-line interface
----------------------

When called as a program from the command line, the following form is used::
Expand Down Expand Up @@ -279,6 +279,9 @@ most cases. You can use :func:`time.process_time` to measure CPU time.
baseline overhead can be measured by invoking the program without arguments,
and it might differ between Python versions.

.. versionadded:: next
Output is in color by default and can be
:ref:`controlled using environment variables <using-on-controlling-color>`.

.. _timeit-examples:

Expand Down
Loading
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.