wasm-demo/demo/ermis-f/python_m/cur/1517

31 lines
717 B
Plaintext

From: phd at sun.med.ru (Oleg Broytmann)
Date: Sun, 11 Apr 1999 13:41:34 GMT
Subject: Processing time
In-Reply-To: <37109636.1FF246CB@xs4all.nl>
References: <37109636.1FF246CB@xs4all.nl>
Message-ID: <Pine.SOL2.3.96.SK.990411174003.10660G-100000@sun.med.ru>
X-UID: 1517
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.