title: Display pygame timer
body: <p>I have made a game in pygame which includes a timer which stops when the player dies. However, I am having some problems displaying the timer on the screen, rather in the python shell. Hope you can help me out :D</p>
  
  <pre><code>pygame.time.get_ticks()/1000
  font = pygame.font.SysFont("Times New Roman", 30)
  text = font.render("Time", True, color)
  
  running=True
  while running:
      event = pygame.event.wait ()
      if pygame.sprite.colliede_rect(block, block1):
          window.blit(text, (window_width/2, window_height/2-100))
          pygame.display.update()
          print("du overlevede",pygame.time.get_ticks()/1000, "sekunder")  
          pygame.time.wait(5000)
          running = False
  </code></pre>