1CLOCK_GETCPUCLOCKID(3P)    POSIX Programmer's Manual   CLOCK_GETCPUCLOCKID(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       clock_getcpuclockid - access a process CPU-time clock  (ADVANCED  REAL‐
13       TIME)
14

SYNOPSIS

16       #include <time.h>
17
18       int clock_getcpuclockid(pid_t pid, clockid_t *clock_id);
19
20

DESCRIPTION

22       The  clock_getcpuclockid()  function  shall  return the clock ID of the
23       CPU-time clock  of  the  process  specified  by  pid.  If  the  process
24       described  by  pid  exists  and the calling process has permission, the
25       clock ID of this clock shall be returned in clock_id.
26
27       If pid is zero, the clock_getcpuclockid()  function  shall  return  the
28       clock  ID  of  the  CPU-time  clock  of the process making the call, in
29       clock_id.
30
31       The conditions under which one process has  permission  to  obtain  the
32       CPU-time clock ID of other processes are implementation-defined.
33

RETURN VALUE

35       Upon  successful  completion,  clock_getcpuclockid() shall return zero;
36       otherwise, an error number shall be returned to indicate the error.
37

ERRORS

39       The clock_getcpuclockid() function shall fail if:
40
41       EPERM  The requesting process does not have permission  to  access  the
42              CPU-time clock for the process.
43
44
45       The clock_getcpuclockid() function may fail if:
46
47       ESRCH  No  process  can be found corresponding to the process specified
48              by pid.
49
50
51       The following sections are informative.
52

EXAMPLES

54       None.
55

APPLICATION USAGE

57       The clock_getcpuclockid() function is  part  of  the  Process  CPU-Time
58       Clocks option and need not be provided on all implementations.
59

RATIONALE

61       None.
62

FUTURE DIRECTIONS

64       None.
65

SEE ALSO

67       clock_getres(),   timer_create(),   the   Base  Definitions  volume  of
68       IEEE Std 1003.1-2001, <time.h>
69
71       Portions of this text are reprinted and reproduced in  electronic  form
72       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
73       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
74       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
75       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
76       event of any discrepancy between this version and the original IEEE and
77       The Open Group Standard, the original IEEE and The Open Group  Standard
78       is  the  referee document. The original Standard can be obtained online
79       at http://www.opengroup.org/unix/online.html .
80
81
82
83IEEE/The Open Group                  2003              CLOCK_GETCPUCLOCKID(3P)
Impressum