

Upon successful completion, getitimer() or setitimer() shall return 0 otherwise, -1 shall be returned and The interaction between setitimer() and any of alarm(), sleep(), or usleep() is unspecified. Each time the ITIMER_PROF timer expires, the SIGPROF Interpreters in statistically profiling the execution of interpreted programs. ITIMER_PROF Decrements both in process virtual time and when the system is running on behalf of the process. A SIGVTALRM signal is delivered when itĮxpires. It runs only when the process is executing. ITIMER_VIRTUAL Decrements in process virtual time. A SIGALRM signal is delivered when this timer expires.

Which argument: ITIMER_REAL Decrements in real time. Requires a finer granularity than the implementation supports, the actual timer value shall be rounded up to the next supportedĪn XSI-conforming implementation provides each process with at least three interval timers, which are indicated by the For each interval timer, if the requested timer value Implementations may place limitations on the granularity of timer values. It_interval to 0 shall disable a timer after its next expiration (assuming it_value is non-zero). Setting it_value to 0 shall disable a timer, regardless of the value of it_interval. If it_interval is non-zero, it shall specify a value to be used in reloading it_value when the If it_value is non-zero, it shall indicate the time to the next Structure pointed to by value, and if ovalue is not a null pointer, store the previous value of the timer in theĪ timer value is defined by the itimerval structure, specified in. The setitimer() function shall set the timer specified by which to the value specified in the The getitimer() function shall store the current value of the timer specified by which into the structure pointed Int setitimer(int which, const struct itimerval *restrict value , Int getitimer(int which, struct itimerval * value )
