# Install TimeV2
`pip install timev2`
from TimeV2 import time2
# Record the time it takes to wait 5 seconds
time2.stopwatch_start()
time2.wait(5)
timeRecorded = time2.stopwatch_stop()
print(timeRecorded)
import time
time_to_stop = 10 #seconds
for x in range(1, time_to_stop+1):
print(x)
time.sleep(1)
import time
now = time.time()
future = now + 10
while time.time() < future:
# do stuff
pass