how to check time of execution of code in python using time module code example
Example 1: python calculate time taken
import time
start = time.process_time()
# your code here
print(time.process_time() - start)
Example 2: time it python
import time
start = time.time()
print("hello")
end = time.time()
print(end - start)