aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs
diff options
context:
space:
mode:
authorOren Hurvitz2015-08-06 09:54:20 +0300
committerOren Hurvitz2015-08-11 08:44:27 +0100
commita568f06b7faea807149205d0e47454e4883e4836 (patch)
tree7233a00fb1f726519c94a2a0cd6e1aaac4ead8e4 /OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs
parentShow Script Time in the statistics panel (diff)
downloadopensim-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.cs5
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
28using System; 28using System;
29using System.Diagnostics;
29using System.Threading; 30using System.Threading;
30using OpenMetaverse; 31using OpenMetaverse;
31using OpenSim.Framework; 32using 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