Skip to content

Instantly share code, notes, and snippets.

@jkazimierczak
Created September 26, 2022 23:44
Show Gist options
  • Save jkazimierczak/96c179fca6026a94306549ecc44da1e0 to your computer and use it in GitHub Desktop.
Save jkazimierczak/96c179fca6026a94306549ecc44da1e0 to your computer and use it in GitHub Desktop.
time.perf_counter()
import time
start_time = time.perf_counter()
# Code to measure execution time
print(f"measured_code took {time.perf_counter() - start_time}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment