Last active
April 26, 2021 08:35
-
-
Save Abhayparashar31/b0c63fd82c3425faed7d30f49be23d74 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| ''' | |
| Execution Time Of A CodeBlock May Differ At Each Exection, because of timeit. | |
| timeit runs your CodeBlock millions of times (default value is 1000000) so that you get the statistically most relevant | |
| measurement of code execution time! | |
| ''' | |
| import timeit | |
| start = timeit.default_timer() | |
| ## Paste Your Code Here | |
| stop = timeit.default_timer() | |
| execution_time = stop - start | |
| print("Program Executed in "+str(execution_time)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment