mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
When scripts are sleeping, don't count that as execution time
Sleeping doesn't use the CPU.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Threading;
|
||||
using OpenMetaverse;
|
||||
using OpenSim.Framework;
|
||||
@@ -45,7 +46,9 @@ namespace OpenSim.Region.ScriptEngine.Interfaces
|
||||
/// <param name='host'>/param>
|
||||
/// <param name='item'>/param>
|
||||
/// <param name='coopSleepHandle'>/param>
|
||||
/// <param name="executionTimer">The timer used to measure how long the script has executed</param>
|
||||
void Initialize(
|
||||
IScriptEngine scriptEngine, SceneObjectPart host, TaskInventoryItem item, WaitHandle coopSleepHandle);
|
||||
IScriptEngine scriptEngine, SceneObjectPart host, TaskInventoryItem item, WaitHandle coopSleepHandle,
|
||||
Stopwatch executionTimer);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user