Re: Handy short cut for formatting elapsed time in floating point seconds

2007-04-21 Thread Steven D'Aprano
On Sat, 21 Apr 2007 18:09:01 -0700, Paul McGuire wrote: > I am doing some simple timing of some elements of Python scripts, and > the simplest is to just call time.time() before and after key elements > of the script: > > t1 = time.time() > > # do lengthy operation > > t2 = time.time() > print

Re: Handy short cut for formatting elapsed time in floating point seconds

2007-04-21 Thread George Sakkis
On Apr 21, 9:09 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > I am doing some simple timing of some elements of Python scripts, and > the simplest is to just call time.time() before and after key elements > of the script: > > t1 = time.time() > > # do lengthy operation > > t2 = time.time() > print

Re: Handy short cut for formatting elapsed time in floating point seconds

2007-04-21 Thread John Machin
On Apr 22, 11:09 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > I am doing some simple timing of some elements of Python scripts, and > the simplest is to just call time.time() before and after key elements > of the script: > > t1 = time.time() > > # do lengthy operation > > t2 = time.time() > print