Add a resourse for threads, and make it FixedInteger, Then restart record, And click on " Thread Number " on the left upper corner, Then add your threads resourse inside it.
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.