mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-08 18:30:18 +00:00
Define CLOCK_MONOTONIC.
This commit is contained in:
parent
8f3846a978
commit
1e543c0cc6
@ -1,5 +1,5 @@
|
|||||||
/* System-dependent timing definitions. Generic version.
|
/* System-dependent timing definitions. Generic version.
|
||||||
Copyright (C) 1996,1997,1999,2000,2001,2002 Free Software Foundation, Inc.
|
Copyright (C) 1996,1997,1999-2002,2003 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -44,6 +44,8 @@ extern long int __sysconf (int);
|
|||||||
# ifdef __USE_POSIX199309
|
# ifdef __USE_POSIX199309
|
||||||
/* Identifier for system-wide realtime clock. */
|
/* Identifier for system-wide realtime clock. */
|
||||||
# define CLOCK_REALTIME 0
|
# define CLOCK_REALTIME 0
|
||||||
|
/* Monotonic system-wide clock. */
|
||||||
|
# define CLOCK_MONOTONIC 1
|
||||||
/* High-resolution timer from the CPU. */
|
/* High-resolution timer from the CPU. */
|
||||||
# define CLOCK_PROCESS_CPUTIME_ID 2
|
# define CLOCK_PROCESS_CPUTIME_ID 2
|
||||||
/* Thread-specific CPU-time clock. */
|
/* Thread-specific CPU-time clock. */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* System-dependent timing definitions. Generic version.
|
/* System-dependent timing definitions. Generic version.
|
||||||
Copyright (C) 1996,1997,1999,2000,2001,2002 Free Software Foundation, Inc.
|
Copyright (C) 1996,1997,1999-2002,2003 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -44,6 +44,8 @@ extern long int __sysconf (int);
|
|||||||
# ifdef __USE_POSIX199309
|
# ifdef __USE_POSIX199309
|
||||||
/* Identifier for system-wide realtime clock. */
|
/* Identifier for system-wide realtime clock. */
|
||||||
# define CLOCK_REALTIME 0
|
# define CLOCK_REALTIME 0
|
||||||
|
/* Monotonic system-wide clock. */
|
||||||
|
# define CLOCK_MONOTONIC 1
|
||||||
/* High-resolution timer from the CPU. */
|
/* High-resolution timer from the CPU. */
|
||||||
# define CLOCK_PROCESS_CPUTIME_ID 2
|
# define CLOCK_PROCESS_CPUTIME_ID 2
|
||||||
/* Thread-specific CPU-time clock. */
|
/* Thread-specific CPU-time clock. */
|
||||||
|
Loading…
Reference in New Issue
Block a user