time.h: Add CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID definition
see the spec here: https://pubs.opengroup.org/onlinepubs/000095399/functions/clock_getres.html Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
2fc1192019
commit
37b8748f17
@ -73,9 +73,19 @@
|
||||
|
||||
#define CLOCK_MONOTONIC 1
|
||||
|
||||
/* Clock that measures CPU time consumed by this process (i.e., CPU
|
||||
* time consumed by all threads in the process).
|
||||
*/
|
||||
|
||||
#define CLOCK_PROCESS_CPUTIME_ID 2
|
||||
|
||||
/* Clock that measures CPU time consumed by this thread */
|
||||
|
||||
#define CLOCK_THREAD_CPUTIME_ID 3
|
||||
|
||||
/* Monotonic system-wide clock that includes time spent in suspension. */
|
||||
|
||||
#define CLOCK_BOOTTIME 2
|
||||
#define CLOCK_BOOTTIME 4
|
||||
|
||||
/* This is a flag that may be passed to the timer_settime() and
|
||||
* clock_nanosleep() functions.
|
||||
|
Loading…
Reference in New Issue
Block a user