Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gettimer(3) [osf1 man page]

gettimer(3)						     Library Functions Manual						       gettimer(3)

NAME
gettimer - Gets value of a per-process timer LIBRARY
Standard C Library (libc.a) SYNOPSIS
#include <sys/timers.h> int gettimer( timer_t timerid, struct itimerspec *tp) ; PARAMETERS
Specifies the per-process timer to use; this value is obtained from a call to mktimer(). Points to an itimerspec structure. DESCRIPTION
The gettimer() function gets the current value of a per-process timer. NOTES
The gettimer() function is part of the POSIX 1003.4 real-time extensions, which is not an approved standard. As such, it is liable to change. Trial use RETURN VALUES
Upon successful completion, the gettimer() function returns the value 0 (zero). Otherwise, the gettimer() function returns a value of -1 and sets errno to indicate the error. ERRORS
If the gettimer() function fails, errno may be set to the following value: The timerid parameter does not specify a known timer. RELATED INFORMATION
Functions: mktimer(2), reltimer(3), rmtimer(3) delim off gettimer(3)

Check Out this Related Man Page

gettimer(3C)															      gettimer(3C)

NAME
gettimer - get value of a per-process timer SYNOPSIS
DESCRIPTION
The function returns an structure value to the argument. The member of the structure represents the amount of time in the current interval before the timer expires for the timer specified in or zero if the timer is disabled. The member has the value last set by (see rel- timer(3C)). The members of are subject to the resolution of the timer (see mktimer(3C)). The behavior of this function is undefined if is NULL. RETURN VALUE
Upon successful completion, returns zero; otherwise, it returns -1 and sets to indicate the error. ERRORS
fails if any of the following conditions are encountered: [EINVAL] does not correspond to an ID returned by [EIO] An error occurred while accessing the clock device. FILES
SEE ALSO
timers(2), timer_gettime(2), mktimer(3C), reltimer(3C), thread_safety(5). STANDARDS CONFORMANCE
gettimer(3C)
Man Page