mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Add support for new clocks.
Recent Linux kernels added support for the CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE clocks.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user