Find out time it took for a python script to complete execution
<p>I have the following code in a python script:</p>

<pre><code>def fun()
  #Code here

fun()
</code></pre>

<p>I want to execute this script and also find out how much time it took to execute in minutes. How to find out how much time it took for this script to execute ?.Some example would be really appreciated.</p>

<p>Thank You</p>
