[Python-Dev] time.clock() on windows (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Wed Oct 21 22:51:03 CEST 2009
- Previous message: [Python-Dev] time.clock() on windows
- Next message: [Python-Dev] time.clock() on windows
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Kristján Valur Jónsson <kristjan ccpgames.com> writes:
You are right, on windows time.clock() is based relative to its first call in the process. There is no such promise made on unix. QueryPerformanceCounter() (what time.clock uses()) is a robust high resolution timer that is processor/core independent. It should be possible to use it across different processes too, if this annoying rebasing wasn't there.
Well, could we simply have a high-resolution time.time()? Or is Windows just too limited to provide this?
Regards
Antoine.
- Previous message: [Python-Dev] time.clock() on windows
- Next message: [Python-Dev] time.clock() on windows
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]