title: using a timer as a highscore system
body: <p>i have a program where it asks the user a series of questions.
  <strong>im looking to start a timer when the user begins the program and want the timer to end and display the time used once the game is over when the questions are answered</strong>. I have some code for a timer already but it brings a few problems. unless i execute this program using cmd, it prints a new line every second and also causes the cmd to keep flashing. it works as wanted when run from cmd though.
  thanks for any help</p>
  
  <pre><code>import os
  import time
  s=0
  m=0
  h=0
  while s&lt;=60:
      os.system('cls')
      print (h, 'Hours', m, 'Minutes', s, 'Seconds')
      time.sleep(1)
      s+=1
      if s == 60:
          m+=1
          s=0
      elif m == 60:
          h+=1
          m=0
          s=0
  </code></pre>