diff options
author | Oren Hurvitz | 2015-08-06 09:54:20 +0300 |
---|---|---|
committer | Oren Hurvitz | 2015-08-11 08:44:27 +0100 |
commit | a568f06b7faea807149205d0e47454e4883e4836 (patch) | |
tree | 7233a00fb1f726519c94a2a0cd6e1aaac4ead8e4 /OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs | |
parent | Show Script Time in the statistics panel (diff) | |
download | opensim-SC-a568f06b7faea807149205d0e47454e4883e4836.zip opensim-SC-a568f06b7faea807149205d0e47454e4883e4836.tar.gz opensim-SC-a568f06b7faea807149205d0e47454e4883e4836.tar.bz2 opensim-SC-a568f06b7faea807149205d0e47454e4883e4836.tar.xz |
When scripts are sleeping, don't count that as execution time
Sleeping doesn't use the CPU.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs b/OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs index 30e99b0..0f65877 100644 --- a/OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs +++ b/OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs | |||
@@ -26,6 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Diagnostics; | ||
29 | using System.Threading; | 30 | using System.Threading; |
30 | using OpenMetaverse; | 31 | using OpenMetaverse; |
31 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
@@ -45,7 +46,9 @@ namespace OpenSim.Region.ScriptEngine.Interfaces | |||
45 | /// <param name='host'>/param> | 46 | /// <param name='host'>/param> |
46 | /// <param name='item'>/param> | 47 | /// <param name='item'>/param> |
47 | /// <param name='coopSleepHandle'>/param> | 48 | /// <param name='coopSleepHandle'>/param> |
49 | /// <param name="executionTimer">The timer used to measure how long the script has executed</param> | ||
48 | void Initialize( | 50 | void Initialize( |
49 | IScriptEngine scriptEngine, SceneObjectPart host, TaskInventoryItem item, WaitHandle coopSleepHandle); | 51 | IScriptEngine scriptEngine, SceneObjectPart host, TaskInventoryItem item, WaitHandle coopSleepHandle, |
52 | Stopwatch executionTimer); | ||
50 | } | 53 | } |
51 | } \ No newline at end of file | 54 | } \ No newline at end of file |