Print('Time to run the main Python script: ' + str(executionTime_2))Īnd here is the final result: Time to import modules: 0. Print('Time to import modules: ' + str(executionTime_1))ĮxecutionTime_2 = (time.time() - startTime_2) For example, you may want to separately measure the time it takes to:ĮxecutionTime_1 = (time.time() - startTime_1) Optionally, you may break down the time it takes to run each portion of the code. Here you should get a slightly lower run time: Execution time in seconds: 7.2620604038238525
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |