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

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

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -