diff options
author | Georg Brandl <georg@python.org> | 2007-12-02 14:58:50 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-12-02 14:58:50 (GMT) |
commit | 584265b0010c660af21d3b22ac18fff0da678dd0 (patch) | |
tree | e8d6c884efe654560c7118d61b14296008a6f5b3 /Doc/library/timeit.rst | |
parent | b15a8df51919ae428023df79fd078263d4d23c88 (diff) | |
download | cpython-584265b0010c660af21d3b22ac18fff0da678dd0.zip cpython-584265b0010c660af21d3b22ac18fff0da678dd0.tar.gz cpython-584265b0010c660af21d3b22ac18fff0da678dd0.tar.bz2 |
Add more entries to the glossary.
Written by Jeff Wheeler for GHOP.
Diffstat (limited to 'Doc/library/timeit.rst')
-rw-r--r-- | Doc/library/timeit.rst | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/library/timeit.rst b/Doc/library/timeit.rst index fe3c16c..c545b97 100644 --- a/Doc/library/timeit.rst +++ b/Doc/library/timeit.rst @@ -88,11 +88,12 @@ The module defines the following public class: .. note:: - By default, :meth:`timeit` temporarily turns off garbage collection during the - timing. The advantage of this approach is that it makes independent timings - more comparable. This disadvantage is that GC may be an important component of - the performance of the function being measured. If so, GC can be re-enabled as - the first statement in the *setup* string. For example:: + By default, :meth:`timeit` temporarily turns off :term:`garbage collection` + during the timing. The advantage of this approach is that it makes + independent timings more comparable. This disadvantage is that GC may be + an important component of the performance of the function being measured. + If so, GC can be re-enabled as the first statement in the *setup* string. + For example:: timeit.Timer('for i in xrange(10): oct(i)', 'gc.enable()').timeit() |