]> granicus.if.org Git - python/commit
Issue #22043: _PyTime_Init() now checks if the system clock works.
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 29 Aug 2014 14:31:59 +0000 (16:31 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 29 Aug 2014 14:31:59 +0000 (16:31 +0200)
commit0011124dc235fb9af1a80acf3df7edd8816c0a9d
treeb4c63644aa1fecc1a3ad188da1a73a9f2812c380
parent7efb83393cbe08924682c6852e94d3c4a4033c34
Issue #22043: _PyTime_Init() now checks if the system clock works.

Other changes:

* The whole _PyTime API is private (not defined if Py_LIMITED_API is set)
* _PyTime_gettimeofday_info() also returns -1 on error
* Simplify PyTime_gettimeofday(): only use clock_gettime(CLOCK_REALTIME) or
  gettimeofday() on UNIX. Don't fallback to ftime() or time() anymore.
Include/pytime.h
Modules/timemodule.c
Python/pythonrun.c
Python/pytime.c