| Name | GetScriptTime |
|---|---|
| Type | Method |
| Summary | Returns the amount of time spent in script routines |
| Prototype | double GetScriptTime(); |
| Description | Returns
the amount of time spent, in seconds compiling and executing scripts. This
is a "double" type, which means that it can contain fractions of a second. The current command (or script) is excluded from the time, as timing is done when the script routine finishes. Thus, if you type one of the examples below, and *then* check it against the figure shown in the MUSHclient scripting configuration page, they will disagree. However, if you check the time *first* and then run the example, then the times should agree to within 0.000001 seconds. The reason for that discrepancy is that the figure shown in the scripting configuration page is rounded to the 6th decimal place (ie. to the nearest microsecond). |
| VBscript example | |
| Jscript example | |
| PerlScript example | |
| Returns | The
number of seconds, as a "double" spent executing scripts. The current script
routine will not be counted, as it has not completed execution yet. Scripts
which have errors are not counted in the time. |
See also ...