CompiledScript.StartScriptTimeWatcher Method

Definition

Measures the time of execution for a specified part of a script and alerts if the time threshold is exceeded.

See also Time Watcher

public void StartScriptTimeWatcher(string name, TimeSpan threshold)

Parameters

 name  string

 threshold  TimeSpan

Examples

StartScriptTimeWatcher ("ScriptTimeWatcher_2", "10sec".ToDuration ());