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

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
public void StartScriptTimeWatcher(string name, WatcherType wt, TimeSpan threshold)
public void StartScriptTimeWatcher(string name, WatcherType wt, TimeSpan threshold)
public void StartScriptTimeWatcher(string name, WatcherType wt, TimeSpan threshold)

Parameters

 name  string

 wt  WatcherType

 threshold  TimeSpan

Examples

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
StartScriptTimeWatcher ("ScriptTimeWatcher_2", WatcherType.Alert, "10sec".ToDuration ());
StartScriptTimeWatcher ("ScriptTimeWatcher_2", WatcherType.Alert, "10sec".ToDuration ());
StartScriptTimeWatcher ("ScriptTimeWatcher_2", WatcherType.Alert, "10sec".ToDuration ());