Como registrar o tempo de execução no Python

import time

start = time.time()
print("hello")
end = time.time()
print(end - start)
Smoggy Sloth