mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
improve script cpu time resolution specially on windows
This commit is contained in:
@@ -396,10 +396,10 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
e = StartEventHandler(evc, evt.Params);
|
||||
}
|
||||
//m_RunOnePhase = "done running";
|
||||
m_CPUTime += DateTime.UtcNow.Subtract(now).TotalMilliseconds;
|
||||
m_CPUTime += Util.GetTimeStampMS() - m_SliceStart;
|
||||
|
||||
// Maybe it puqued.
|
||||
if(e is not null)
|
||||
// Maybe it puqued.
|
||||
if (e is not null)
|
||||
{
|
||||
//m_RunOnePhase = "handling exception " + e.Message;
|
||||
HandleScriptException(e);
|
||||
|
||||
Reference in New Issue
Block a user