![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Get the amount of time left on a timer
#include <time.h> int timer_gettime( timer_t timerid, struct itimerspec *value );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The timer_gettime() function gets the amount of time left before the specified timer is to expire, along with the timer's reload value, and stores it in the space provided by the value argument.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
clock_getres(), clock_gettime(), clock_settime(), nanosleep(), sleep(), timer_create(), timer_delete(), timer_getexpstatus(), timer_getoverrun(), timer_settime(), timespec
![]() |
![]() |
![]() |
![]() |