Answers for "python measure processing time"

12

python measure time

import time

start = time.time()
print("hello")
end = time.time()
print(end - start)
Posted by: Guest on March-24-2020
1

how to estimate process timing python

>>> import timeit
>>> tic=timeit.default_timer()
>>> # Do Stuff
>>> toc=timeit.default_timer()
>>> toc - tic #elapsed time in seconds
Posted by: Guest on July-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language