Answers for "time for python process"

0

python program running time

#its tricky and so much easy
#python execute time counter
#coded by Luban
import time
start_time = time.time()
while True:
    x = time.time() - start_time
    x = int(x)
    print('Current Time = ',str(x))
Posted by: Guest on September-07-2021
0

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