Created
November 6, 2020 22:04
-
-
Save turnerd18/370b02ba79365dbc46c4b2d58e32469c to your computer and use it in GitHub Desktop.
Python stopwatch timing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tic = time.perf_counter() | |
products_json = [foo.to_json2() for foo in foos] | |
toc = time.perf_counter() | |
print(f"Hydrated foos: {toc - tic:0.4f} seconds") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment