@@ -96,7 +96,7 @@ floatclock(_Py_clock_info_t *info)
9696 info -> implementation = "clock()" ;
9797 info -> resolution = 1.0 / (double )CLOCKS_PER_SEC ;
9898 info -> monotonic = 1 ;
99- info -> adjusted = 0 ;
99+ info -> adjustable = 0 ;
100100 }
101101 return PyFloat_FromDouble ((double )value / CLOCKS_PER_SEC );
102102}
@@ -132,7 +132,7 @@ win_perf_counter(_Py_clock_info_t *info, PyObject **result)
132132 info -> implementation = "QueryPerformanceCounter()" ;
133133 info -> resolution = 1.0 / (double )cpu_frequency ;
134134 info -> monotonic = 1 ;
135- info -> adjusted = 0 ;
135+ info -> adjustable = 0 ;
136136 }
137137 * result = PyFloat_FromDouble (diff / (double )cpu_frequency );
138138 return 0 ;
@@ -882,7 +882,7 @@ pymonotonic(_Py_clock_info_t *info)
882882 return NULL ;
883883 }
884884 info -> resolution = timeIncrement * 1e-7 ;
885- info -> adjusted = 0 ;
885+ info -> adjustable = 0 ;
886886 }
887887 return PyFloat_FromDouble (result );
888888
@@ -903,7 +903,7 @@ pymonotonic(_Py_clock_info_t *info)
903903 info -> implementation = "mach_absolute_time()" ;
904904 info -> resolution = (double )timebase .numer / timebase .denom * 1e-9 ;
905905 info -> monotonic = 1 ;
906- info -> adjusted = 0 ;
906+ info -> adjustable = 0 ;
907907 }
908908 return PyFloat_FromDouble (secs );
909909
@@ -926,13 +926,7 @@ pymonotonic(_Py_clock_info_t *info)
926926 struct timespec res ;
927927 info -> monotonic = 1 ;
928928 info -> implementation = function ;
929- #if (defined(linux ) || defined(__linux ) || defined(__linux__ )) \
930- && !defined(CLOCK_HIGHRES )
931- /* CLOCK_MONOTONIC is adjusted on Linux */
932- info -> adjusted = 1 ;
933- #else
934- info -> adjusted = 0 ;
935- #endif
929+ info -> adjustable = 0 ;
936930 if (clock_getres (clk_id , & res ) == 0 )
937931 info -> resolution = res .tv_sec + res .tv_nsec * 1e-9 ;
938932 else
@@ -1024,7 +1018,7 @@ py_process_time(_Py_clock_info_t *info)
10241018 info -> implementation = "GetProcessTimes()" ;
10251019 info -> resolution = 1e-7 ;
10261020 info -> monotonic = 1 ;
1027- info -> adjusted = 0 ;
1021+ info -> adjustable = 0 ;
10281022 }
10291023 return PyFloat_FromDouble (total * 1e-7 );
10301024#else
@@ -1053,7 +1047,7 @@ py_process_time(_Py_clock_info_t *info)
10531047 struct timespec res ;
10541048 info -> implementation = function ;
10551049 info -> monotonic = 1 ;
1056- info -> adjusted = 0 ;
1050+ info -> adjustable = 0 ;
10571051 if (clock_getres (clk_id , & res ) == 0 )
10581052 info -> resolution = res .tv_sec + res .tv_nsec * 1e-9 ;
10591053 else
@@ -1071,7 +1065,7 @@ py_process_time(_Py_clock_info_t *info)
10711065 if (info ) {
10721066 info -> implementation = "getrusage(RUSAGE_SELF)" ;
10731067 info -> monotonic = 1 ;
1074- info -> adjusted = 0 ;
1068+ info -> adjustable = 0 ;
10751069 info -> resolution = 1e-6 ;
10761070 }
10771071 return PyFloat_FromDouble (total );
@@ -1100,7 +1094,7 @@ py_process_time(_Py_clock_info_t *info)
11001094 if (info ) {
11011095 info -> implementation = "times()" ;
11021096 info -> monotonic = 1 ;
1103- info -> adjusted = 0 ;
1097+ info -> adjustable = 0 ;
11041098 info -> resolution = 1.0 / ticks_per_second ;
11051099 }
11061100 return PyFloat_FromDouble (total );
@@ -1137,12 +1131,12 @@ time_get_clock_info(PyObject *self, PyObject *args)
11371131#ifdef Py_DEBUG
11381132 info .implementation = NULL ;
11391133 info .monotonic = -1 ;
1140- info .adjusted = -1 ;
1134+ info .adjustable = -1 ;
11411135 info .resolution = -1.0 ;
11421136#else
11431137 info .implementation = "" ;
11441138 info .monotonic = 0 ;
1145- info .adjusted = 0 ;
1139+ info .adjustable = 0 ;
11461140 info .resolution = 1.0 ;
11471141#endif
11481142
@@ -1188,11 +1182,11 @@ time_get_clock_info(PyObject *self, PyObject *args)
11881182 goto error ;
11891183 Py_CLEAR (obj );
11901184
1191- assert (info .adjusted != -1 );
1192- obj = PyBool_FromLong (info .adjusted );
1185+ assert (info .adjustable != -1 );
1186+ obj = PyBool_FromLong (info .adjustable );
11931187 if (obj == NULL )
11941188 goto error ;
1195- if (PyDict_SetItemString (dict , "adjusted " , obj ) == -1 )
1189+ if (PyDict_SetItemString (dict , "adjustable " , obj ) == -1 )
11961190 goto error ;
11971191 Py_CLEAR (obj );
11981192
@@ -1471,7 +1465,7 @@ floattime(_Py_clock_info_t *info)
14711465 struct timespec res ;
14721466 info -> implementation = "clock_gettime(CLOCK_REALTIME)" ;
14731467 info -> monotonic = 0 ;
1474- info -> adjusted = 1 ;
1468+ info -> adjustable = 1 ;
14751469 if (clock_getres (CLOCK_REALTIME , & res ) == 0 )
14761470 info -> resolution = res .tv_sec + res .tv_nsec * 1e-9 ;
14771471 else
0 commit comments