I want to know the command that is executed after a certain period of time.
I guess Pause
is a good choice for my purpose.
For instance, I tried to let the Mathematica do a job after 5 hours:
Pause[3600*5 (* 3600 seconds is 1 hour *)]
1+1
This code does not work, because after 5 hours I saw Mathematica was still pausing!
I confirmed the above code works if I choose a time around few minutes.
Any ideas would be appreciated, thank you.
RunScheduledTask
you will have the same problem when the PC will be in sleep mode... $\endgroup$