Hacker News new | past | comments | ask | show | jobs | submit login

Isn't there a performance penalty when measuring with perf_counter for anything other than really short snippets of code?



Don't think so; at least on Windows it uses the optimal QueryPerformanceCounter API. https://github.com/python/cpython/blob/master/Python/pytime....




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: