import time start = time.time() print("hello") end = time.time() print(end - start) code example
Example: python time a funciton
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)