How to measure execution time of a program

Pete Forman pete.forman at
Wed Jun 28 10:28:55 CEST 2006

"Fredrik Lundh" <fredrik at> writes:
 > simplest way:
 >     t0 = time.time()

You can get better resolution by using time.clock() instead of
Pete Forman                -./\.-  Disclaimer: This post is originated
WesternGeco                  -./\.-   by myself and does not represent
pete.forman at    -./\.-   opinion of Schlumberger, Baker           -./\.-   Hughes or their divisions.

Inviato da X-Privat.Org - Registrazione gratuita

More information about the Python-list mailing list