
Aakash H. answered 12/10/20
Tutor
5
(54)
Effective Test Prep Math Tutor
Have you tried using the time module?
import time
start = time.time()
#your code
end = time.time()
print("Time elapsed in milliseconds:", end - start)