accurate time calculation for amout of time taken for execution python code example
Example: python calculate time taken
import time
start = time.process_time()
# your code here
print(time.process_time() - start)
import time
start = time.process_time()
# your code here
print(time.process_time() - start)