title: Clean way to measure multiple code execution times in Python
body: <p>I want to get the execution time of several portions of my code. Currently I am using <code>time.time()</code> but I feel a bit dumb when writing again and over again code like this:</p>
  
  <pre><code>start = time()
  function1(args1)
  print("Execution of function1: {}".format(time()-start))
  
  start = time()
  function2(args2)
  print("Execution of function2: {}".format(time()-start))
  
  start = time()
  function3(args3)
  print("Execution of function3: {}".format(time()-start))
  </code></pre>
  
  <p>Please do you know any smarter way to do this? I couldn't find any module that would enable to do things like this (for instance):</p>
  
  <pre><code>chrono("Execution of function1")
  function1(args1)
  
  chrono("Execution of function2")
  function2(args2)
  
  chrono("Execution of function3")
  function3(args3)
  </code></pre>