Getting started with python

7stud bbxx789_05ss at yahoo.com
Mon Apr 16 03:03:16 EDT 2007


On Apr 15, 9:49 pm, James Stroud <jstr... at mbi.ucla.edu> wrote:
> py> t = timeit.Timer(stmt=s)
> py> print "%.2f usec/pass" % (1000000 * t.timeit(number=100000)/100000)
> 40.88 usec/pass
>

What does this accomplish:

1000000 * t.timeit(number=100000)/100000

that the following doesn't accomplish:

10 * t.timeit(number=100000)




More information about the Python-list mailing list