The
timer_create() function creates a per-process timer using the clock specified in the
clockid argument. If it succeeds, the
timer_create() function fills in the
timerid argument with an id associated with the timer created that can be used by other timer related calls. The
clockid must be a valid clock id as defined in
<time.h>. The timer is created in a disarmed state.
An optional (non-
NULL)
struct sigevent argument can be specified by the
evp argument. If the
evp argument is
NULL, then
evp->sigev_notify defaults to
SIGEV_SIGNAL and
evp->sigev_value is set to
timerid. Refer to
sigevent(3) for more details.