create

This method creates an RiCOSTimer object.

Signature
RiCOSTimer * RiCOSTimer_create (timeUnit ptime, 
   void (*cbkfunc)(void *), void * params);
Parameters
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.

Returns

The newly created RiCOSTimer

Example
RiCOSTimer * RiCOSTimer_create(timeUnit ptime, 
   void (*cbkfunc)(void *), void * params)
{
   RiCOSTimer * me = malloc(sizeof(RiCOSTimer));
   RiCOSTimer_init(me, ptime, cbkfunc, params);
   return me;
}

Feedback