> | * time.process_time(): High-resolution (?) per-process timer from the > | CPU. (other possible names: time.process_cpu_time() or > | time.cpu_time()) > > POSIX offers CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID that > seem to suit this need, depending on your threading situation (and what > you're measuring). Yep. > | On Windows, GetProcessTimes() has not a "high-resolution": it has a > | accuracy of 1 ms in the best case. > > This page: > http://msdn.microsoft.com/en-us/library/windows/desktop/ms683223%28v=vs.85%29.aspx > says "100-nanosecond time units". > > Am I going to the wrong place to learn about these functions? Yes, the resolution is 100 ns, but the accuracy is only 1 ms in the best case (but it usually 15 ms or 10 ms). Resolution != accuracy, and only accuracy matters :-) http://www.python.org/dev/peps/pep-0418/#resolution Victor
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4