Find out time it took for a python script to complete execution -


i have following code in python script:

def fun()   #code here  fun() 

i want execute script , find out how time took execute in minutes. how find out how time took script execute ?.some example appreciated.

thank you

from datetime import datetime starttime = datetime.now()  #do  print datetime.now() - starttime 

Comments

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -