Mercurial > cpython-lru_cache-weakref
diff Python/pytime.c @ 76695:47c84e3f08ae
strip is_ prefixes on clock_info fields
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Tue, 01 May 2012 09:38:34 -0400 |
| parents | 76d2e0761d18 |
| children | bba131e48852 |
line wrap: on
line diff
--- a/Python/pytime.c Tue May 01 14:08:22 2012 +0200 +++ b/Python/pytime.c Tue May 01 09:38:34 2012 -0400 @@ -40,14 +40,14 @@ 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 @@ 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 @@ 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 @@ 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 */
