Comment faire un chronomètre en Python
import time
now = time.time()
future = now + 10
while time.time() < future:
# do stuff
pass
Jealous Jackal
import time
now = time.time()
future = now + 10
while time.time() < future:
# do stuff
pass