Towards the Gestalt
BlogTILProjectsAbout
Published on
February 8, 2024

TIL: `time.perf_counter()` is a thing in Python

time.perf_counter provides access to the highest available resolution clock to measure a short duration. Been available since Python 3.3!

And its more accurate counterpart time.perf_counter_ns which returns an int was added in Python 3.7.

← GNU `time` can show memory usage
Hugepages are 2MB and 1GB by design →
mailMailgithubGitHublinkedinLinkedinxX
Krut Patel
•
© 2025
•
Krut's Blog
Tailwind Nextjs Theme