[Tutor] Help execution time calculation:
Vineeth Rakesh
vineethrakesh at gmail.com
Wed Jul 14 17:11:58 CEST 2010
Hello all,
I want to calculate the execution time of a program. Say I have a function
like below:
def RepAdd(i):
j = 0
while(j<i):
j += 1
return j
now I want to calculate the execution time of the function RepAdd when say
10 is passed as an argument. I did come across the module timeit, if that is
the module to be used can any one illustrate it using the above program as
input.
Thanks
Vin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100714/7d28a711/attachment.html>
More information about the Tutor
mailing list