Package pyj2d :: Module time :: Class Clock

Class Clock

object --+
         |
        Clock

pyj2d.time.Clock

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
 
get_time(self)
Return time (in ms) between last two calls to tick().
 
tick(self, framerate=0)
Call once per program cycle, returns ms since last call. An optional framerate will add pause to limit rate.
 
tick_busy_loop(self, framerate=0)
Call once per program cycle, returns ms since last call. An optional framerate will add pause to limit rate.
 
get_fps(self)
Return fps.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)