Python time measure question (timeit)

vedrandekovic at vedrandekovic at
Sun Feb 1 10:44:55 EST 2009


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:

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


More information about the Python-list mailing list