-
Notifications
You must be signed in to change notification settings - Fork 4
***.Calc(): display calculation time #81
Copy link
Copy link
Open
Description
Display time ***.calc() took?
eg. Device.calc(), Cavity.calc(), WG.calc() etc.
The code to do this is as follows (python 2.5):
import time, date time
start = time.time() # get current time
### runCalc_function()
# print elapsed solving time:
print( "Calc() took (h:m:s.us) :" + str(datetime.timedelta(seconds=time.time()-start)) )
Reactions are currently unavailable