import time inicio = time.time() print("olá") fim = time.time() print(fim - inicio)