Similar to Network Watcher, Time Watcher measures the time of execution for a specified part of a script and alerts if the threshold has been exceeded.

For example, you need to measure only the 4th step of the 10- steps script, which is the load time of a shopping cart at your online store.

To enable Time Watcher:

  1. Right-click the line (step), after which Time Watcher should start measures.
  2. Select Measure Time > Script > Start.
  3. Optional 1: Specify the watcher parameters on the editing pane, located to the left of the script code area.
  4. Optional 2: To collect, process and aggregate Script Time Watcher results as a custom metric, ensure that you enable the Custom Metric option in the Time Watcher settings.  
  5. Right-click the line, after which the measurement must be stopped. Select Measure Time > Script > Stop, and choose the name of the watcher to close.