title: Outputing time once in python
body: <p>I'm trying to make the program output the time it took to complete <code>fib(n)</code> but during the time it's calculating, it continuously posts minute amounts of time. How do I get the program to just output the time once. Here if my program:</p>
  
  <pre><code>import time
  
  def fib(n):
      if n &lt;= 1:
          return 1
      else:
          start_time = time.time()
          answer = fib(n-1) + fib(n-2)
          end_time = time.time()
          total_time = end_time - start_time
          print(total_time)
          return answer
  </code></pre>