how to measure time inpython code example
Example 1: python measure time
import time
start = time.time()
print("hello")
end = time.time()
print(end - start)
Example 2: how calculate time in python
import time
start = time.process_time()
# your code here
print(time.process_time() - start)