diff options
author | UbitUmarov | 2016-11-22 05:18:06 +0000 |
---|---|---|
committer | UbitUmarov | 2016-11-22 05:18:06 +0000 |
commit | 4e64445c39c3de1941e071ff32d06702a3440d5d (patch) | |
tree | d22dd941e1bb849b525b9d31c9eb3b07f96047bc /OpenSim/Region/ScriptEngine | |
parent | change asset description max size (diff) | |
download | opensim-SC_OLD-4e64445c39c3de1941e071ff32d06702a3440d5d.zip opensim-SC_OLD-4e64445c39c3de1941e071ff32d06702a3440d5d.tar.gz opensim-SC_OLD-4e64445c39c3de1941e071ff32d06702a3440d5d.tar.bz2 opensim-SC_OLD-4e64445c39c3de1941e071ff32d06702a3440d5d.tar.xz |
replace datetime.now on just timming by faster utcnow
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index d725907..7129c8a 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |||
@@ -880,7 +880,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
880 | try | 880 | try |
881 | { | 881 | { |
882 | m_CurrentEvent = data.EventName; | 882 | m_CurrentEvent = data.EventName; |
883 | m_EventStart = DateTime.Now; | 883 | m_EventStart = DateTime.UtcNow; |
884 | m_InEvent = true; | 884 | m_InEvent = true; |
885 | 885 | ||
886 | try | 886 | try |
@@ -1033,7 +1033,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
1033 | if (!m_InEvent) | 1033 | if (!m_InEvent) |
1034 | return 0; | 1034 | return 0; |
1035 | 1035 | ||
1036 | return (DateTime.Now - m_EventStart).Seconds; | 1036 | return (DateTime.UtcNow - m_EventStart).Seconds; |
1037 | } | 1037 | } |
1038 | 1038 | ||
1039 | public void ResetScript(int timeout) | 1039 | public void ResetScript(int timeout) |