title: Python: Start and stop timer
body: <p>I have a code which runs for more than 1,000 iterations. I want te implement a timer that starts before the code starts executing and stops after the execution of the code is done. By this i simply want to measure the time taken for the code to complete the iterations. How do I implement such a timer in python?</p>
  
  <p><strong>Code Structure:</strong></p>
  
  <p>Start timer</p>
  
  <p>//Code</p>
  
  <p>Stop Timer</p>
  
  <p>Thanks in advance!</p>