timergettime
timer_gettime is a POSIX function that retrieves the current settings of a per-process timer. It is part of the real-time timers interface and is commonly described as timer_gettime; some libraries or documentation may refer to it as timergettime.
Signature and parameters: int timer_gettime(timer_t timerid, struct itimerspec *tp); timerid is a timer identifier obtained from
Itimerspec fields: The itimerspec structure contains two timespec values: IT_INTERVAL and IT_VALUE. It_value represents the time
Behavior: timer_gettime writes into tp the current expiration settings. If it_value is zero, the timer has no
Return value and errors: On success, timer_gettime returns 0. On error, it returns -1 and sets errno.
Typical usage: After creating a timer with timer_create, you can call timer_gettime to inspect how much time
See also: timer_create, timer_settime, timer_delete, clock_gettime, and related timing facilities such as nanosleep and timerfd in