Re: [BangPypers] Place the timer in Python script

2009-09-18 Thread steve
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

Re: [BangPypers] Place the timer in Python script

2009-09-18 Thread srid
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

Re: [BangPypers] Place the timer in Python script

2009-09-18 Thread Naresh Khalasi
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)

Re: [BangPypers] Place the timer in Python script

2009-09-18 Thread Shashwat Anand
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. >

Re: [BangPypers] Place the timer in Python script

2009-09-18 Thread Vishal
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

Re: [BangPypers] Place the timer in Python script

2009-09-18 Thread bhaskar jain
>>>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

Re: [BangPypers] Place the timer in Python script

2009-09-18 Thread steve
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

Re: [BangPypers] Place the timer in Python script

2009-09-18 Thread Amit Saha
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/

[BangPypers] Place the timer in Python script

2009-09-18 Thread Vamsi
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 ___