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.
TIME ZONE MODULE
-

TIME ZONE MODULE - is designed to adjust the location according to the ip-address, coordinates, time zone and other properties. Usually not used in practice, as it is replaced by an action block called "Proxy". It is useful and practical to adjust the parameters according to the ip address, because at the slightest discrepancy between your proxy IP and the one that the site sees, you will have problems with anonymity.
More information in telegram chat @bas_english