How to measure execution time of a program

Pete Forman pete.forman at westerngeco.com
Wed Jun 28 04:28:55 EDT 2006


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

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

Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php



More information about the Python-list mailing list