Re: time difference interms of day

2010-10-26 Thread M.-A. Lemburg
Steve Holden wrote: > On 10/24/2010 1:55 PM, mukkera harsha wrote: >> Hello >> I was wondering if there is an existing function that would let me >> determine the difference in time. To explain: >> >> Upon starting a program: >> >> startup = time.time() >> >> After some very long processing:

Re: time difference interms of day

2010-10-24 Thread Jonas H.
On 10/24/2010 07:55 PM, mukkera harsha wrote: On, doing now - startup I want the program to return in terms of days. How ? >>> import datetime >>> now = datetime.datetime.now() >>> after_few_seconds = datetime.datetime.now() >>> after_few_seconds - now datetime.timedelta(0, 14, 256614) >>> (aft

Re: time difference interms of day

2010-10-24 Thread Steve Holden
On 10/24/2010 1:55 PM, mukkera harsha wrote: > Hello > I was wondering if there is an existing function that would let me > determine the difference in time. To explain: > > Upon starting a program: > > startup = time.time() > > After some very long processing: > now = time.time() > >

Re: Time Difference

2004-12-20 Thread Gabriel Cooper
GMane Python wrote: Hello I was wondering if there is an existing function that would let me determine the difference in time. For a more robust solution, checkout Python's profile module. http://docs.python.org/lib/profile.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Time Difference

2004-12-17 Thread Peter Hansen
GMane Python wrote: Hello I was wondering if there is an existing function that would let me determine the difference in time. To explain: Upon starting a program: startup = time.time() After some very long processing: now = time.time() print, now - startup So, to print in a formatted way (D

Re: Time Difference

2004-12-17 Thread Frans Englich
On Friday 17 December 2004 15:40, Fredrik Lundh wrote: > "GMane Python" <[EMAIL PROTECTED]> wrote: > > I was wondering if there is an existing function that would let me > > determine the difference in time. To explain: > > > > Upon starting a program: > > > > startup = time.time() > > > > After

Re: Time Difference

2004-12-17 Thread Fredrik Lundh
"GMane Python" <[EMAIL PROTECTED]> wrote: > I was wondering if there is an existing function that would let me > determine the difference in time. To explain: > > Upon starting a program: > > startup = time.time() > > After some very long processing: > now = time.time() > > print, now - star