title: pygame.time.clock() or pygame.clock.tick() error
body: <p>I have a main loop in my code where it loops everything and when I run my code I get this error:</p>
  
  <pre><code>    Traceback (most recent call last):
        File "C:\Users\Javier\Documents\Python Pygame\First Game\First 
      Game.py", line 17, in &lt;module&gt;
          clock=pygame.time.clock()
      AttributeError: module 'pygame.time' has no attribute 'clock'
  </code></pre>
  
  <p>I understand what the error is: it means it can't find the 'class' <code>clock</code> and in another instance where I used <code>pygame.tick.clock()</code> I got the same error.</p>
  
  <pre><code>    #import modules here
  
      import pygame
  
      #define what colours are
      black=(0,0,0)
      white=(255,255,255)
      turquoise=(64,224,208)
      #initalise pygame
      pygame.init()
      #set up screen
      screen=pygame.display.set_mode((400,400))
      #what the screen is called and backgroud colour
      screen.fill(black)
      pygame.display.set_caption("Snake!")
      #set a variable for how quick the game runs
      clock=pygame.time.clock()
  
      '''making future references easier
      eval just takes code as a string and runs it
      eg:
      instead of doing print(5+8)
      you can do eval(print(5+8))'''
      def key(key):
          return pygame.ket.get_pressed()[eval("pygame.K_"+key)]
      #draw the snake
      snake=(50,150,150,50)
      #display.flip shows what has been drawn on the screen eg the snake
      while True:
          pygame.draw.rect(screen,turquoise,snake)
          pygame.display.flip()
          clock.tick(60)
  </code></pre>
  
  <p>When I comment the problem code (<code>clock.tick()</code> and <code>pygame.time.clock</code>)  the window opens and displays the turquoise "snake" but it has no limiting factor that slows down the rate of the loop executing.</p>