Package pyjsdl :: Module time :: Class Clock

Class Clock

object --+
         |
        Clock

pyjsdl.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)
Calls tick() with optional framerate. Returns ms since last call.
 
get_fps(self)
Return fps.
 
time(self)
pyjsdl.time.time

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)

time(self)

 

pyjsdl.time.time

Return system time (in ms).