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:
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
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()
>
>
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
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
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
"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