mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
pytime.c: rename pygettimeofday_new() to pygettimeofday()
I forgot to rename it in my previous refactoring of pytime.c.
This commit is contained in:
parent
d2f6974240
commit
c379ade1bb
1 changed files with 3 additions and 3 deletions
|
@ -449,7 +449,7 @@ _PyTime_AsTimespec(_PyTime_t t, struct timespec *ts)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
pygettimeofday_new(_PyTime_t *tp, _Py_clock_info_t *info, int raise)
|
pygettimeofday(_PyTime_t *tp, _Py_clock_info_t *info, int raise)
|
||||||
{
|
{
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
FILETIME system_time;
|
FILETIME system_time;
|
||||||
|
@ -541,7 +541,7 @@ _PyTime_t
|
||||||
_PyTime_GetSystemClock(void)
|
_PyTime_GetSystemClock(void)
|
||||||
{
|
{
|
||||||
_PyTime_t t;
|
_PyTime_t t;
|
||||||
if (pygettimeofday_new(&t, NULL, 0) < 0) {
|
if (pygettimeofday(&t, NULL, 0) < 0) {
|
||||||
/* should not happen, _PyTime_Init() checked the clock at startup */
|
/* should not happen, _PyTime_Init() checked the clock at startup */
|
||||||
assert(0);
|
assert(0);
|
||||||
|
|
||||||
|
@ -554,7 +554,7 @@ _PyTime_GetSystemClock(void)
|
||||||
int
|
int
|
||||||
_PyTime_GetSystemClockWithInfo(_PyTime_t *t, _Py_clock_info_t *info)
|
_PyTime_GetSystemClockWithInfo(_PyTime_t *t, _Py_clock_info_t *info)
|
||||||
{
|
{
|
||||||
return pygettimeofday_new(t, info, 1);
|
return pygettimeofday(t, info, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue