Aug-26-2019, 09:03 AM
alright! it is working now and I need a clarity
>>> a= 'okay' for i in range(4): timeit('print(a)','from __main__ import a',number=4)
Output:>>> for i in range(4): timeit('print(a)','from __main__ import a',number=4)
...
okay
okay
okay
okay
0.0035411143718420135
okay
okay
okay
okay
0.0012378038995848328
okay
okay
okay
okay
0.0006817251627353471
okay
okay
okay
okay
0.001336081797035149
>>>
So, here it is displaying timer after printing okay for 4 times. It that a cumulative timer to print all the 4 okies or how it working??. Please explain..! Thanks in advance!