from timeit import default_timer as timer code example
Example 1: time it python
import time
start = time.time()
print("hello")
end = time.time()
print(end - start)
Example 2: from timeit import default_timer as timer
from timeit import default_timer as timer