/**
* Creates a timer handler object
*
* @param timer pointer to receive the created timer result
* @param absolute boolean indicatying if the start is given in absolute (relative to epoch)
* @param start_sec start time in seconds
* @param start_ms millisecond part of the start time
* @param count count of time the handler must be called (zero for endlessly)
* @param period_ms the period in milliseconds between to calls to the handler
* @param accuracy_ms the expected accuracy in the period
* @param handler the handler callback
* @param closure closure pointer for the handler
* @param autounref boolean if not null the timer is automatically unreferenced when finished
*
* @return 0 in case of success or a negative -errno like value
*/
int
afb_timer_create(
afb_timer_t *timer,
int absolute,
time_t start_sec,
unsigned start_ms,
unsigned count,
unsigned period_ms,
unsigned accuracy_ms,
afb_timer_handler_t handler,
void *closure,
int autounref
);