class EasyTimer

Timer class. More...

Definition#include <easytimer.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members

Protected Members


Detailed Description

Timer class. Calls a callback function every specified period of time

 EasyTimer ()

EasyTimer

 ~EasyTimer ()

~EasyTimer

void  (*onTimer) (int time)

(*onTimer)

Callback which is called every time when period is expired

void  stop ()

stop

Stops timer

void  start (int period)

start

Starts timer

void  process ()

process

Call this method to make timer working Usually you have to call it in application idle loop

Uint32 last_ticks

last_ticks

[protected]

int period

period

[protected]

int running

running