Blame bits/time.h

Packit Service 82fcde
/* System-dependent timing definitions.  Generic version.
Packit Service 82fcde
   Copyright (C) 1996-2018 Free Software Foundation, Inc.
Packit Service 82fcde
   This file is part of the GNU C Library.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 82fcde
   modify it under the terms of the GNU Lesser General Public
Packit Service 82fcde
   License as published by the Free Software Foundation; either
Packit Service 82fcde
   version 2.1 of the License, or (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 82fcde
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 82fcde
   Lesser General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
   You should have received a copy of the GNU Lesser General Public
Packit Service 82fcde
   License along with the GNU C Library; if not, see
Packit Service 82fcde
   <http://www.gnu.org/licenses/>.  */
Packit Service 82fcde
Packit Service 82fcde
/*
Packit Service 82fcde
 * Never include this file directly; use <time.h> instead.
Packit Service 82fcde
 */
Packit Service 82fcde
Packit Service 82fcde
#ifndef _BITS_TIME_H
Packit Service 82fcde
#define _BITS_TIME_H	1
Packit Service 82fcde
Packit Service 82fcde
#include <bits/types.h>
Packit Service 82fcde
Packit Service 82fcde
/* ISO/IEC 9899:1999 7.23.1: Components of time
Packit Service 82fcde
   The macro `CLOCKS_PER_SEC' is an expression with type `clock_t' that is
Packit Service 82fcde
   the number per second of the value returned by the `clock' function.  */
Packit Service 82fcde
/* CAE XSH, Issue 4, Version 2: <time.h>
Packit Service 82fcde
   The value of CLOCKS_PER_SEC is required to be 1 million on all
Packit Service 82fcde
   XSI-conformant systems. */
Packit Service 82fcde
#define CLOCKS_PER_SEC  ((__clock_t) 1000000)
Packit Service 82fcde
Packit Service 82fcde
#if (!defined __STRICT_ANSI__ || defined __USE_POSIX) \
Packit Service 82fcde
   && !defined __USE_XOPEN2K
Packit Service 82fcde
/* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
Packit Service 82fcde
   presents the real value for clock ticks per second for the system.  */
Packit Service 82fcde
extern long int __sysconf (int);
Packit Service 82fcde
# define CLK_TCK ((__clock_t) __sysconf (2))	/* 2 is _SC_CLK_TCK */
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_POSIX199309
Packit Service 82fcde
/* Identifier for system-wide realtime clock.  */
Packit Service 82fcde
# define CLOCK_REALTIME			0
Packit Service 82fcde
/* Monotonic system-wide clock.  */
Packit Service 82fcde
# define CLOCK_MONOTONIC		1
Packit Service 82fcde
/* High-resolution timer from the CPU.  */
Packit Service 82fcde
# define CLOCK_PROCESS_CPUTIME_ID	2
Packit Service 82fcde
/* Thread-specific CPU-time clock.  */
Packit Service 82fcde
# define CLOCK_THREAD_CPUTIME_ID	3
Packit Service 82fcde
/* Monotonic system-wide clock, not adjusted for frequency scaling.  */
Packit Service 82fcde
# define CLOCK_MONOTONIC_RAW		4
Packit Service 82fcde
/* Identifier for system-wide realtime clock, updated only on ticks.  */
Packit Service 82fcde
# define CLOCK_REALTIME_COARSE		5
Packit Service 82fcde
/* Monotonic system-wide clock, updated only on ticks.  */
Packit Service 82fcde
# define CLOCK_MONOTONIC_COARSE		6
Packit Service 82fcde
Packit Service 82fcde
/* Flag to indicate time is absolute.  */
Packit Service 82fcde
# define TIMER_ABSTIME			1
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
#endif	/* bits/time.h */