Package pyjsdl :: Module time :: Class Time

Class Time

object --+
         |
        Time

pyjsdl.time

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
 
get_ticks(self)
pyjsdl.time.get_ticks
 
delay(self, time)
pyjsdl.time.delay
 
wait(self, time=0)
pyjsdl.time.wait
 
set_timer(self, event, time, once=False)
pyjsdl.time.set_timer
 
time(self)
pyjsdl.time.time
 
set_timeout(self, obj, time)
Timeout time (in ms) before triggering obj.run method. Return timer id.
 
clear_timeout(self, id)
Clear timer. Argument timer id of set_timeout.
 
set_interval(self, obj, time)
Recurring timeout time (in ms) before triggering obj.run method. Return timer id.
 
clear_interval(self, id)
Clear timer. Argument timer id of set_interval.

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)

 

pyjsdl.time.get_ticks

Return ms since program start.

delay(self, time)

 

pyjsdl.time.delay

Pause for given time (in ms). Return ms paused. Suspends the program, preferably use time.wait.

wait(self, time=0)

 

pyjsdl.time.wait

Timeout program callback for given time (in ms).

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

 

pyjsdl.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.

time(self)

 

pyjsdl.time.time

Return system time (in ms).