title: Formatting the Output
body: <p><img src="https://i.stack.imgur.com/BRFWH.png" alt="enter image description here">I have developed two algorithms to solve Problem 1 of Project Euler and I was trying to determine which one is faster. So I decided to import the time module, based on one of the suggestions on this site. The running time is about a 1000th of a second. But I'd still like to see at least 5 digits of the running time after the decimal place. So I have tried various formatting methods like round(), repr(), str() (I then slice the string), I have tried using the format modifiers, but nothing seems to work. I'll even attach my code for good measure. Please to suggest a modification that will help me!</p>
  
  <pre><code>import time
  start_time = time.time()
  
  check1 = True
  x = 0
  sum = 0
  
  while check1:
      x += 3
      sum += x
      if x &gt;=1000:
          check1 = False
  
  y = 0
  
  check2 = True
  
  while check2:
      y += 5 
      if x % 3 != 0:
          sum += y
      if y &gt;= 1000:
          check2 = False
  
  print(sum)
  print(round(time.time() - start.time , 5))
  </code></pre>
  
  <p>Just don't mind the indentation, something might've gone wrong while I copied the code! I have added a screenshot of the output too.</p>