If you just want to measure the elapsed wall-clock time between two points, you could use time.time():
start = time.time()
end = time.time()
print(end - start)
The following code gives the execution time in seconds.
Hope this helps!!
If you need to learn more about Python, It's recommended to join Python Training today.