summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-05-01 13:38:34 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-05-01 13:38:34 (GMT)
commit49a69e4d48d68a36325ba9098e1962e8c2195339 (patch)
treee46dc4cc1bd7d5584240a8b7a4f37e6cd4814e9f /Python
parentd099b56be77c782b969ccf5912ab01a3b313c759 (diff)
downloadcpython-49a69e4d48d68a36325ba9098e1962e8c2195339.zip
cpython-49a69e4d48d68a36325ba9098e1962e8c2195339.tar.gz
cpython-49a69e4d48d68a36325ba9098e1962e8c2195339.tar.bz2
strip is_ prefixes on clock_info fields
Diffstat (limited to 'Python')
-rw-r--r--Python/pytime.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Python/pytime.c b/Python/pytime.c
index ddd3088..0ffe799 100644
--- a/Python/pytime.c
+++ b/Python/pytime.c
@@ -40,14 +40,14 @@ pygettimeofday(_PyTime_timeval *tp, _Py_clock_info_t *info)
BOOL isTimeAdjustmentDisabled;
info->implementation = "GetSystemTimeAsFileTime()";
- info->is_monotonic = 0;
+ info->monotonic = 0;
(void) GetSystemTimeAdjustment(&timeAdjustment, &timeIncrement,
&isTimeAdjustmentDisabled);
info->resolution = timeIncrement * 1e-7;
if (isTimeAdjustmentDisabled)
- info->is_adjusted = 0;
+ info->adjusted = 0;
else
- info->is_adjusted = 1;
+ info->adjusted = 1;
}
#else
/* There are three ways to get the time:
@@ -70,8 +70,8 @@ pygettimeofday(_PyTime_timeval *tp, _Py_clock_info_t *info)
if (info) {
info->implementation = "gettimeofday()";
info->resolution = 1e-6;
- info->is_monotonic = 0;
- info->is_adjusted = 1;
+ info->monotonic = 0;
+ info->adjusted = 1;
}
return;
}
@@ -86,8 +86,8 @@ pygettimeofday(_PyTime_timeval *tp, _Py_clock_info_t *info)
if (info) {
info->implementation = "ftime()";
info->resolution = 1e-3;
- info->is_monotonic = 0;
- info->is_adjusted = 1;
+ info->monotonic = 0;
+ info->adjusted = 1;
}
}
#else /* !HAVE_FTIME */
@@ -96,8 +96,8 @@ pygettimeofday(_PyTime_timeval *tp, _Py_clock_info_t *info)
if (info) {
info->implementation = "time()";
info->resolution = 1.0;
- info->is_monotonic = 0;
- info->is_adjusted = 1;
+ info->monotonic = 0;
+ info->adjusted = 1;
}
#endif /* !HAVE_FTIME */