I have a command line program in Python that takes a while to finish. I want to know the exact time it takes to finish running.
I\'ve looked at the timeit
timeit
I tried and found time difference using the following scripts.
import time start_time = time.perf_counter() [main code here] print (time.perf_counter() - start_time, "seconds")