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
Post a Comment