On 09/19/2009 10:37 AM, srid wrote:
http://tinyurl.com/nz73fd
The OP's post in c.l.py appears as the first result. Is this what you
call recursion? :-)
No, this is:
http://www.google.com/search?q=recursion
cheers,
- steve
--
random non tech spiel: http://lonetwin.blogspot.com/
tech randomnes
http://tinyurl.com/nz73fd
The OP's post in c.l.py appears as the first result. Is this what you
call recursion? :-)
-srid
On Fri, Sep 18, 2009 at 3:03 AM, Vamsi wrote:
> How to place the timer in python code.
>
> I want calculate the python script execution time.
>
> ex : Start Timer
> : End
I used this when I first exploredbut now I prefer "timeit"
from datetime import datetime as dt
session = Session()
try:
log.debug('Creating all enterprise users at once')
start_time = dt.now()
session.add_all(list_of_users)
One really simple way is to do :
$ time code.py
Works for me for simple codes. For accuracy there is timeit :)
On Fri, Sep 18, 2009 at 4:02 PM, Vishal wrote:
> On Fri, Sep 18, 2009 at 3:43 PM, steve wrote:
>
>> On 09/18/2009 03:33 PM, Vamsi wrote:
>>
>>> How to place the timer in python code.
>
On Fri, Sep 18, 2009 at 3:43 PM, steve wrote:
> On 09/18/2009 03:33 PM, Vamsi wrote:
>
>> How to place the timer in python code.
>>
>> I want calculate the python script execution time.
>>
>> ex : Start Timer
>> : End Timer
>>
>> Execution Time : End Timer - Start Timer.
>>
>> How can we wri
>>>btw, dunno if you've heard about this really neat web application. It is
a simple text box with a couple of buttons that answers questions such as
these. I >>>forgot it's name. It's something like golgol or some such
Great answer!
http://lmgtfy.com/
On Fri, Sep 18, 2009 at 3:43 PM, steve wr
On 09/18/2009 03:33 PM, Vamsi wrote:
How to place the timer in python code.
I want calculate the python script execution time.
ex : Start Timer
: End Timer
Execution Time : End Timer - Start Timer.
How can we write the python code for this.
http://docs.python.org/library/debug.html
Sp
Vamsi wrote:
How to place the timer in python code.
I want calculate the python script execution time.
ex : Start Timer
: End Timer
Execution Time : End Timer - Start Timer.
How can we write the python code for this.
Help would be appreciable.
http://stackoverflow.com/questions/156330/
How to place the timer in python code.
I want calculate the python script execution time.
ex : Start Timer
: End Timer
Execution Time : End Timer - Start Timer.
How can we write the python code for this.
Help would be appreciable.
Thanks in Advance.
Vamsi
___