Section: Linux Programmer's Guide
Return to Main Contents
timer_gettime - Get the time remaining on a POSIX.1b interval timer
- long sys_timer_gettime (timer_t timer_id, struct itimerspec *setting);
timer_gettime gets the time remaining on a POSIX.1b interval timer, timer_id. It then loads this value in to the argument pointed to by setting.
timer_gettime returns 0 on success. Otherwise, timer_gettime returns the errors listed in the "Errors" section.
An invalid timer_id value was specified.
An invalid address of setting was specified.
timer_create(2), timer_delete(2), timer_getovverun(2), timer_settime(2).
- RETURN VALUE
- SEE ALSO
linux.jgfs.net manual pages