| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
py_win_perf_counter_frequency() no longer checks for QueryPerformanceFrequency() failure. According to the QueryPerformanceFrequency() documentation, the function can no longer fails since Windows XP.
| return -1; | ||
| } | ||
| // Since Windows XP, the function cannot fail. | ||
| (void)QueryPerformanceFrequency(&freq); |
There was a problem hiding this comment.
Why query this every time? It's fixed at boot, so it isn't going to change.
Sorry, something went wrong.
There was a problem hiding this comment.
This function must be called exactly once in a process: py_get_win_perf_counter() uses a static variable for that.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
py_win_perf_counter_frequency() no longer checks for
QueryPerformanceFrequency() failure. According to the
QueryPerformanceFrequency() documentation, the function can no longer
fails since Windows XP.
https://bugs.python.org/issue41299