import time
time.sleep(0.1)
input("Inicio:")
tiempo_inicial = time.ticks_ms()/1000
input("Final:")
tiempo_transcurrido = time.ticks_ms()/1000- tiempo_inicial
print(f"Tiempo transcurrido: {tiempo_transcurrido} segundos")import time
time.sleep(0.1)
input("Inicio:")
tiempo_inicial = time.ticks_ms()/1000
input("Final:")
tiempo_transcurrido = time.ticks_ms()/1000- tiempo_inicial
print(f"Tiempo transcurrido: {tiempo_transcurrido} segundos")