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

razor - Is this a bug in WebMatrix PageData? -

c# - How to set Z index when using WPF DrawingContext? -

c# - Cloning WPF controls and object hierarchies -