timeit – Time the execution of small bits of Python code. - Python Module of the Week
timeit – Time the execution of small bits of Python code.¶