PyDocs

Debugging and profiling

timeit

Tool for measuring execution time of small code snippets.

This module avoids a number of common traps for measuring execution
times.  See also Tim Peters' introduction to the Algorithms chapter in
the Python Cookbook, published by O'Reilly.

Library usage: see the Timer class.

Classes:

    Timer

Functions:

    timeit(string, string) -> float
    repeat(string, string) -> list
    default_timer() -> float
Symbols in timeit

d

default_timer
Performance counter for benchmarking.

r

repeat
Convenience function to create Timer object and call repeat method.

t

timeit
Convenience function to create Timer object and call timeit method.
Timer
Class for timing execution speed of small code snippets.