How do I get time of a Python program's execution??

I have a command line program in Python that takes a while to finish. I want to know the exact time it takes to fini...

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

I have the following code in a python script: def fun(): #Code here fun() I want to execute this script and a...