diff options
author | davidxu <davidxu@FreeBSD.org> | 2008-03-22 09:59:20 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2008-03-22 09:59:20 +0000 |
commit | 1423f22a4cfd25ee67c64722cb270d04a9baa2f6 (patch) | |
tree | 015a0dec5360aa70620f168434fc00e9c526fd1c /include/time.h | |
parent | a9d123c3ab34baa9fe2c8c25bd9acfbfb31b381e (diff) | |
download | FreeBSD-src-1423f22a4cfd25ee67c64722cb270d04a9baa2f6.zip FreeBSD-src-1423f22a4cfd25ee67c64722cb270d04a9baa2f6.tar.gz |
Add POSIX pthread API pthread_getcpuclockid() to get a thread's cpu
time clock id.
Diffstat (limited to 'include/time.h')
-rw-r--r-- | include/time.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h index 69a41c2..d28d9b4 100644 --- a/include/time.h +++ b/include/time.h @@ -108,6 +108,7 @@ typedef __timer_t timer_t; #define CLOCK_MONOTONIC_PRECISE 11 /* FreeBSD-specific. */ #define CLOCK_MONOTONIC_FAST 12 /* FreeBSD-specific. */ #define CLOCK_SECOND 13 /* FreeBSD-specific. */ +#define CLOCK_THREAD_CPUTIME_ID 14 #endif /* !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 200112 */ #if !defined(TIMER_ABSTIME) && __POSIX_VISIBLE >= 200112 |