From 1423f22a4cfd25ee67c64722cb270d04a9baa2f6 Mon Sep 17 00:00:00 2001 From: davidxu Date: Sat, 22 Mar 2008 09:59:20 +0000 Subject: Add POSIX pthread API pthread_getcpuclockid() to get a thread's cpu time clock id. --- include/time.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/time.h') 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 -- cgit v1.1