Apologies, missed that part. Didn't mean to seem rude.
import timeit
def anyName():
pass
for num in range(10):
t = timeit.Timer('anyName()','from __main__ import anyName')
print t.repeat(repeat=5)
#or
import timeit
def anyName():
pass
t = timeit.Timer('anyName()','from __main__ import anyName')
print t.repeat(repeat=5)
If I get the gist of what you're asking.
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor