Package pyj2d :: Module time :: Class Time

Class Time

object --+
         |
        Time

pyj2d.time

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
 
get_ticks(self)
pyj2d.time.get_ticks
 
delay(self, time)
pyj2d.time.delay
 
wait(self, time)
pyj2d.time.wait
 
set_timer(self, event, time, once=False)
pyj2d.time.set_timer
 
time(self)
Return system time (in ms).

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)

get_ticks(self)

 

pyj2d.time.get_ticks

Return ms since program start.

delay(self, time)

 

pyj2d.time.delay

Pause for given time (in ms). Return ms paused.

wait(self, time)

 

pyj2d.time.wait

Pause for given time (in ms). Return ms paused.

set_timer(self, event, time, once=False)

 

pyj2d.time.set_timer

Post event on queue at time (ms) intervals. Optional argument once set no timer repeat, defaults to False. Disable timer with time of 0.