pike.git
/
src
/
pike_rusage.h
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/pike_rusage.h:1:
/* || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: pike_rusage.h,v 1.
24
2008
/
01
/
08
17
:
08
:
00
grubba
Exp $
+
|| $Id: pike_rusage.h,v 1.
25
2009
/
04
/
21
11
:
41
:
57
mast
Exp $
*/ #ifndef PIKE_RUSAGE_H #define PIKE_RUSAGE_H #include "global.h" #ifdef HAVE_TIME_H #include <time.h> #endif
pike.git/src/pike_rusage.h:121:
/* Choose get_real_time implementation. Prefer one that isn't affected * by wall clock adjustments. */ #ifdef HAVE_POSIX_MONOTONIC_GRT # define real_time_is_monotonic 1 # define posix_monotonic_grt_impl get_real_time_impl # define posix_monotonic_grt get_real_time # define posix_monotonic_grt_res get_real_time_res # define GRT_IS_POSIX_MONOTONIC #elif defined (MIGHT_HAVE_POSIX_MONOTONIC_GRT) # define GRT_RUNTIME_CHOICE
+
#elif defined (HAVE_HOST_GET_CLOCK_SERVICE)
+
/* Define GRT_RUNTIME_CHOICE to allow MIGHT_HAVE_POSIX_MONOTONIC_GRT
+
* to take precedence at runtime, if it would become possible. */
+
# define GRT_RUNTIME_CHOICE
#elif defined (HAVE_POSIX_REALTIME_GRT) # define real_time_is_monotonic 0 # define posix_realtime_grt_impl get_real_time_impl # define posix_realtime_grt get_real_time # define posix_realtime_grt_res get_real_time_res # define GRT_IS_POSIX_REALTIME #else # define fallback_grt_is_monotonic real_time_is_monotonic # define fallback_grt_impl get_real_time_impl # define fallback_grt get_real_time