title: How to use python timeit when passing variables to functions?
body: <p>I'm struggling with this using timeit and was wondering if anyone had any tips</p>
  
  <p>Basically I have a function(that I pass a value to) that I want to test the speed of and created this:</p>
  
  <pre><code>if __name__=='__main__':
      from timeit import Timer
      t = Timer(superMegaIntenseFunction(10))
      print t.timeit(number=1)
  </code></pre>
  
  <p>but when I run it, I get weird errors like coming from the timeit module.:</p>
  
  <pre><code>ValueError: stmt is neither a string nor callable
  </code></pre>
  
  <p>If I run the function on its own, it works fine.  Its when I wrap it in the time it module, I get the errors(I have tried using double quotes and without..sameoutput).</p>
  
  <p>any suggestions would be awesome!</p>
  
  <p>Thanks!</p>