calc running time of pytohno code example
Example 1: python calculate time taken
import time
start = time.process_time()
# your code here
print(time.process_time() - start)
Example 2: use datetime python to get runtime
from datetime import datetime
start = datetime.now()
# code ...
print(datetime.now()-start)