I thought you cannot, but that methode is special good for a thread.
Than you can measure the time in another thread and abort the thread if it
goes to long or let the user abort it. I could not find another methode with
that. (And because this works really fine I did not search long for it).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.