Re: [Tutor] time vs. timeit

2014-08-26 Thread Steven D'Aprano
On Tue, Aug 26, 2014 at 09:56:55AM +0530, diliup gabadamudalige wrote: > Hi all, > > 1. why do some say that the time module is more accurate than the timeit > module? > s = time.time() > or > s = timeit.timeit() You will have to ask them. Since the two functions do very different things, I don'

Re: [Tutor] time vs. timeit

2014-08-26 Thread Chris “Kwpolska” Warrick
On Tue, Aug 26, 2014 at 6:26 AM, diliup gabadamudalige wrote: > Hi all, > > 1. why do some say that the time module is more accurate than the timeit > module? > s = time.time() > or > s = timeit.timeit() > > 2. Why is it that both modules never return the same answer on each run? The two function

[Tutor] time vs. timeit

2014-08-26 Thread diliup gabadamudalige
Hi all, 1. why do some say that the time module is more accurate than the timeit module? s = time.time() or s = timeit.timeit() 2. Why is it that both modules never return the same answer on each run? Thank you for your response. -- Diliup Gabadamudalige http://www.diliupg.com http://soft.dil