I am working with the following code in a python script:
def fun(): 
  #Code here
fun()
I want to execute this script and also find out how much time it took to execute in minutes. How do I find out how much time it took for this script to execute? Can anyone help me with this?