Answers for "how i can find the runtime of function in python in second"

6

find time of run for python code

import time
start_time = time.time()
main()
print("--- %s seconds ---" % (time.time() - start_time))
Posted by: Guest on December-10-2020

Code answers related to "how i can find the runtime of function in python in second"

Python Answers by Framework

Browse Popular Code Answers by Language