A lame but easy way to do it would to be have a seperate thread running a simple timer, then everything you "do" something then you can tell the thread to start over. If the thread reaches its timeout it can send a message to the main app to shut down or do what ever. Can't think of a way without using threads...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.