time module python to check duration taken to train the model in a list code example
Example: time it python
import time
start = time.time()
print("hello")
end = time.time()
print(end - start)
import time
start = time.time()
print("hello")
end = time.time()
print(end - start)