title: How to use timeit when timing a function
body: <p>Let me start off by saying I know almost nothing about python but have to write a program in three different languages (already done in java and c++).</p>
  
  <p>I need to be able to time the execution of a method a certain number of times and then print the time it took for the over-all execution time.</p>
  
  <p>I.e.</p>
  
  <p>I have function <code>A</code> (which is <code>performSearch(arrayTest)</code> where <code>arrayTest</code> is an array of known size). <code>A</code> is executed 10 times</p>
  
  <p>I need to be able to time how long it took from before <code>A</code> was executed to after <code>A</code> was executed.</p>