Here's a suggestion:
Mark the time when starting the thread.
Then during the script run, add a time check action and compare the time difference with your desired value.
-> Take appropriate action.
I think you could use another thread with the browser to accomplish this. And saving the necessary data to a resource / global variable, then using this data in the new thread, whether with the browser or whatever needs to be done.
@Hifive This means, that you are using action, which needs browser(load page, set proxy , etc) before you created it, or after you delete it.
Here is a project which does what you want