| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
nice fix!
Sorry, something went wrong.
| # negate the priority to make it a max heap | ||
| heapq.heappush(self._speech_q, (-priority, time.perf_counter_ns(), speech)) | ||
| break | ||
| except TypeError: |
There was a problem hiding this comment.
maybe comment here on why TypeError is thrown? (it's clear when reading the bug, but that context is lost when reading the code alone)
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Before python 3.13, on Windows, time.monotonic() uses gGetTickCount64() clock which has a resolution of 15.6 ms.
python/cpython#116781
Replaced it with time.perf_counter_ns for python < 3.13 on Windows, fix #2764