Mailing List Archive

Processing time
How can I get the Processing time of a script?



--
\\\|///
\\ - - //
( @ @ )
/----------------------oOOo-(_)-oOOo--------------------\
| |
| |
| My Email: debot@xs4all.nl |
| Homepages: http://www.searchy.net/ |
| http://www.debot.nl/ppi/ |
| |
| |
\-------------------------------Oooo--------------------/
oooO ( )
( ) ) /
\ ( (_/
\_)
Processing time [ In reply to ]
Hi!

On Sun, 11 Apr 1999, Frank de Bot wrote:
> How can I get the Processing time of a script?

from time import time
start_time = time()

Do_Processing()

end_time = time()
print "The program spents", end_time - start_time, "seconds"

Oleg.
----
Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/
Programmers don't die, they just GOSUB without RETURN.