"tee chwee liong" <[email protected]> wrote

i would like to know the time taken to execute a certain task in python. i used time.time and time.clock and i see the time taken is different? what is the right method to use?

Neither of those, either use timeit() or the Python profiler.
They are both specifically provided for timing things in your code.

Search the documentation for help with both.

HTH,

--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/


_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to