measuring a function time

Joe Riopel goon12 at gmail.com
Thu Jul 29 08:45:23 EDT 2010


On Thu, Jul 29, 2010 at 8:34 AM, Mahmood Naderan <nt_mahmood at yahoo.com> wrote:
> the output should be 7600 (s) for example. What is the best and easiest way
> to do that?

Take a look at time.clock()

http://docs.python.org/library/time.html#time.clock

"this is the function to use for benchmarking Python or timing algorithms."



More information about the Python-list mailing list