|
NAMEclock_getcpuclockid —
access a process CPU-time clock
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <time.h>
int
DESCRIPTIONTheclock_getcpuclockid () returns the clock ID of the
CPU-time clock of the process specified by pid. If the
process described by pid exists and the calling process
has permission, the clock ID of this clock will be returned in
clock_id.
If pid is zero, the
RETURN VALUESUpon successful completion,clock_getcpuclockid ()
returns zero; otherwise, an error number is returned to indicate the error.
ERRORSTheclock_getcpuclockid () function will fail if:
SEE ALSOclock_gettime(2)STANDARDSTheclock_getcpuclockid () function conforms to
IEEE Std 1003.1-2001 (“POSIX.1”).
HISTORYTheclock_getcpuclockid () function first appeared in
FreeBSD 10.0.
AUTHORSDavid Xu <davidxu@FreeBSD.org>
Visit the GSP FreeBSD Man Page Interface. |