title: How do I use a PyGame timer event? How to add a clock to a pygame screen using a timer?
body: <p>I'm new to python and therefore decided to try to make a simple game in <code>pygame</code>. I want to add a timer/clock that shows how long &quot;you have played/survived&quot;, so creating a clock basically.</p>
  <p>However, I've searched around and gotten the <code>time.sleep(1)</code> function and it does indeed work as a clock, but it slows down everything else of the game to the point it barely moves.</p>
  <p>Is there a simple way to add a clock to the gamescreen?</p>