After the script is recorded you can add a “Time Watcher” that makes sure the time of execution for a specific part of a script is faster than the time specified and sends alerts in case the threshold is exceeded.
To set this up while editing a script, Select the line (step) where Time Watcher should start.  Right mouse click and select  “Add Script Time Watcher” from the menu. After you’ve entered the desired properties (name, threshold), select the line after which watcher should be stopped, right mouse click and select “Close Watcher”, after that choose a name of watcher to close.