This method creates an RiCOSTimer object.
SignatureRiCOSTimer * RiCOSTimer_create (timeUnit ptime,
void (*cbkfunc)(void *), void * params);
ParameterspTime
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.
ReturnsThe newly created RiCOSTimer
ExampleRiCOSTimer * RiCOSTimer_create(timeUnit ptime,
void (*cbkfunc)(void *), void * params)
{
RiCOSTimer * me = malloc(sizeof(RiCOSTimer));
RiCOSTimer_init(me, ptime, cbkfunc, params);
return me;
}