Package pygext :: Package gl :: Package director :: Module reactor :: Class Ticker
[frames | no frames]

Type Ticker

object --+
         |
        Ticker


Framerate independent timer

Utility class for event timing. The idea is that a "tick" happens once every frame, and a "realtick" happens only as dictated by the resolution of the timer. Useful attribute in this class:

last_realtick - time when the last realtick took place (as returned by pygame.time.get_ticks()) next_realtick - when the next realtick should happen now - current time delta - amount of time from the last tick (in seconds) realtick - boolean value: is the current tick a realtick?
Method Summary
  __init__(self, resolution)
  tick(self)
this method should be called once per frame

Method Details

tick(self)

this method should be called once per frame

Generated by Epydoc 2.1 on Mon Jun 12 18:21:21 2006 http://epydoc.sf.net