Have you taken a look at the alarm() function? I think that will do what you need however I have not used it before.
In reply to Re: Time Out eval by Herkum in thread Time Out eval by Trihedralguy