This method creates an RiCOSTimer object.
RiCOSTimer * RiCOSTimer_create (timeUnit ptime,
void (*cbkfunc)(void *), void * params);
pTime
The time between each tick of the timer. In most adapters, the time unit is milliseconds.
cbkfunc
The tick-timer call-back function used to notify the timer client that a tick occurred.
params
The parameters to the callback function.
The newly created RiCOSTimer
RiCOSTimer * RiCOSTimer_create(timeUnit ptime,
void (*cbkfunc)(void *), void * params)
{
RiCOSTimer * me = malloc(sizeof(RiCOSTimer));
RiCOSTimer_init(me, ptime, cbkfunc, params);
return me;
}