Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 76597:76d2e0761d18
Issue #14428, #14397: Implement the PEP 418
* Rename time.steady() to time.monotonic()
* On Windows, time.monotonic() uses GetTickCount/GetTickCount64() instead of
QueryPerformanceCounter()
* time.monotonic() uses CLOCK_HIGHRES if available
* Add time.get_clock_info(), time.perf_counter() and time.process_time()
functions
| author | Victor Stinner <victor.stinner@gmail.com> |
|---|---|
| date | Sun, 29 Apr 2012 02:41:27 +0200 |
| parents | 6f6f965c5e2d |
| children |
line wrap: on
line source
#include "Python.h" #ifndef PLATFORM #define PLATFORM "unknown" #endif const char * Py_GetPlatform(void) { return PLATFORM; }
