time.clock() or time.time()

Nelson Minar nelson at monkey.org
Wed Aug 3 13:57:44 EDT 2005


"peterbe at gmail.com" <peterbe at gmail.com> writes:
> I'm trying to benchmark some function calls for Zope project

Other folks have explained time() vs. clock(), so I'll leave that.

But rather than roll your own timer functions, consider using timeit.




More information about the Python-list mailing list