]>
Commit | Line | Data |
---|---|---|
9df71aff MK |
1 | .\" Copyright (c) 2008, Linux Foundation, written by Michael Kerrisk |
2 | .\" <mtk.manpages@gmail.com> | |
3 | .\" | |
5fbde956 | 4 | .\" SPDX-License-Identifier: Linux-man-pages-copyleft |
9df71aff | 5 | .\" |
45186a5d | 6 | .TH CLOCK_GETCPUCLOCKID 3 2021-03-22 "Linux man-pages (unreleased)" |
9df71aff MK |
7 | .SH NAME |
8 | clock_getcpuclockid \- obtain ID of a process CPU-time clock | |
c0ef3bb3 AC |
9 | .SH LIBRARY |
10 | Standard C library | |
8fc3b2cf | 11 | .RI ( libc ", " \-lc ), |
c0ef3bb3 AC |
12 | since glibc 2.17 |
13 | .PP | |
14 | Before glibc 2.17, | |
15 | Real-time library | |
8fc3b2cf | 16 | .RI ( librt ", " \-lrt ) |
9df71aff MK |
17 | .SH SYNOPSIS |
18 | .B #include <time.h> | |
19 | .nf | |
68e4db0a | 20 | .PP |
9e099e69 | 21 | .BI "int clock_getcpuclockid(pid_t " pid ", clockid_t *" clockid ); |
9df71aff | 22 | .fi |
68e4db0a | 23 | .PP |
9a30939e | 24 | .ad l |
d39ad78f | 25 | .RS -4 |
9df71aff MK |
26 | Feature Test Macro Requirements for glibc (see |
27 | .BR feature_test_macros (7)): | |
d39ad78f | 28 | .RE |
68e4db0a | 29 | .PP |
9df71aff | 30 | .BR clock_getcpuclockid (): |
9d2adbae | 31 | .nf |
5c10d2c5 | 32 | _POSIX_C_SOURCE >= 200112L |
9d2adbae | 33 | .fi |
9df71aff MK |
34 | .SH DESCRIPTION |
35 | The | |
36 | .BR clock_getcpuclockid () | |