0

i tried making a program that executes X minutes after the user gets to that point in the code. i thought of making a variable for the minutes and making another variable wich is that +X. and than a while loop. but if you have 10 minutes for example and the current time is 12:53 that is not going to work as well.

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Nyk
  • 3
  • 2

1 Answers1

4

Consider time.sleep():

print ('now')
time.sleep(10 * 60)  # Ten minutes
print ('later')
Robᵩ
  • 163,533
  • 20
  • 239
  • 308