aboutsummaryrefslogtreecommitdiff
path: root/bits
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2010-03-25 04:01:33 -0700
committerUlrich Drepper <drepper@redhat.com>2010-03-25 04:01:33 -0700
commit89a4419cc384c090b1eabe610647aa4e14436a3f (patch)
tree253c7010cf7a78c1736f6e0a6e19731ce0adc69c /bits
parent03615f7d837398790f88f7bd936a33a99e799af5 (diff)
downloadglibc-89a4419cc384c090b1eabe610647aa4e14436a3f.zip
glibc-89a4419cc384c090b1eabe610647aa4e14436a3f.tar.gz
glibc-89a4419cc384c090b1eabe610647aa4e14436a3f.tar.bz2
Add support for new clocks.
Recent Linux kernels added support for the CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE clocks.
Diffstat (limited to 'bits')
-rw-r--r--bits/time.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/bits/time.h b/bits/time.h
index b3184d1..968ecc5 100644
--- a/bits/time.h
+++ b/bits/time.h
@@ -1,5 +1,5 @@
/* System-dependent timing definitions. Generic version.
- Copyright (C) 1996,1997,1999-2002,2003 Free Software Foundation, Inc.
+ Copyright (C) 1996,1997,1999-2002,2003,2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -50,6 +50,12 @@ extern long int __sysconf (int);
# define CLOCK_PROCESS_CPUTIME_ID 2
/* Thread-specific CPU-time clock. */
# define CLOCK_THREAD_CPUTIME_ID 3
+/* Monotonic system-wide clock, not adjusted for frequency scaling. */
+# define CLOCK_MONOTONIC_RAW 4
+/* Identifier for system-wide realtime clock, updated only on ticks. */
+# define CLOCK_REALTIME_COARSE 5
+/* Monotonic system-wide clock, updated only on ticks. */
+# define CLOCK_MONOTONIC_COARSE 6
/* Flag to indicate time is absolute. */
# define TIMER_ABSTIME 1