19 timer(
void (*handler)(
void));
20 timer(
void *(*handler)(
void *));
29 void (*handler)(void);
30 void *(*thandler)(
void *);
43 #define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); } while (0)
44 #define CLOCKID CLOCK_REALTIME
timer(void(*handler)(void))
Timer constructor Depending on the call of the constructor the handler will be called as thread or no...
Definition: timer.cpp:34
void initTimers(void)
inits the system timer based on signals
Definition: timer.cpp:153
void call()
Calls the timer handler if enabled.
Definition: timer.cpp:69
void * nullThread(void *threadid)
This is a dummy thread.
Definition: timer.cpp:229
timer * next
contains the pointer on the next timer element of the list
Definition: timer.h:27
void start()
enables the timer
Definition: timer.cpp:93
void stopTimers(void)
Stops all existing timers.
Definition: timer.cpp:214
bool isActive()
Returns the timers active state.
Definition: timer.cpp:128
void setDivider(int divider)
sets the divider for this timer (based on system timer)
Definition: timer.cpp:110
int getDivider()
reads the timer divider
Definition: timer.cpp:119
Timer Class This class allows the creation of multiple timers that are based by a divider on a single...
Definition: timer.h:17
void stop()
disables the timer
Definition: timer.cpp:101