Link Search Menu Expand Document

Class OGLTimer

About :

	A OGL Timer instance enables to run Timers
Class diagram of class of OGLTimer.

Functions

Function summury
__init__(self, on_timer) on_timer the method called at each tick of the timer (more…)
start(self, dt) Start a repeating timer whith a target delay (more…)
process(self)  
stop(self) stop a running timer (more…)

Methods desciption :

init

def __init__(self, on_timer)
  • → on_timer the method called at each tick of the timer prototype : def on_timer(args): pass

start

def start(self, dt)

Start a repeating timer whith a target delay

  • → : dt : delay in ms between two ticks

process

def process(self)

stop

def stop(self)

stop a running timer