[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] timer, update



Hi, how can i do that the image update every 300ms, for example:

a = get_time()
while 1:
   if get_time() > (a + 300ms)
       updateImage()
       a = get_time()

i need the methods to get time

PS: sorry for my english