Python time measure question (timeit)

vedrandekovic at yahoo.com vedrandekovic at yahoo.com
Sun Feb 1 10:44:55 EST 2009


Hello,

When I run following code with os.popen  (for this time measure I'm
using python module timeit):


for i in range(50):
    print i


I get this result:  0.00246958761519


But when I run same code from IDLE i get this result:
6.4533341528e-005


now, I have two questions:
              1) Which of this results is correct?
              2) Are this results in micro seconds?


Regards,
John



More information about the Python-list mailing list