[Python-Dev] PEP 418: Add monotonic clock (original) (raw)
Victor Stinner victor.stinner at gmail.com
Tue Mar 27 19:50:35 CEST 2012
- Previous message: [Python-Dev] PEP 418: Add monotonic clock
- Next message: [Python-Dev] PEP 418: Add monotonic clock
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
steadyclock:
mac = machabsolutetime posix = clockgettime(CLOCKMONOTONIC) win = QueryPerformanceCounter
I read that QueryPerformanceCounter is no so monotonic, and GetTickCount is preferred. Is it true?
highresolutionclock:
* = { steadyclock, if available systemclock, otherwise }
On Windows, I propose to use QueryPerformanceCounter() for time.hires() and GetTickCount() for time.monotonic().
See the PEP for other OSes.
Victor
- Previous message: [Python-Dev] PEP 418: Add monotonic clock
- Next message: [Python-Dev] PEP 418: Add monotonic clock
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]