diff options
author | UbitUmarov | 2016-11-25 21:37:33 +0000 |
---|---|---|
committer | UbitUmarov | 2016-11-25 21:37:33 +0000 |
commit | 6f1080368d23d8e3952b5ffd3c3cc05f540d6402 (patch) | |
tree | 11e3df0bcce8958a276ec4a029daa2ad5482f47c /OpenSim/Region/ScriptEngine/Shared | |
parent | add llGetMaxScaleFactor and llGetMinScaleFactor (diff) | |
download | opensim-SC_OLD-6f1080368d23d8e3952b5ffd3c3cc05f540d6402.zip opensim-SC_OLD-6f1080368d23d8e3952b5ffd3c3cc05f540d6402.tar.gz opensim-SC_OLD-6f1080368d23d8e3952b5ffd3c3cc05f540d6402.tar.bz2 opensim-SC_OLD-6f1080368d23d8e3952b5ffd3c3cc05f540d6402.tar.xz |
reduce the resolution of llGetTime and llGetAndResetTime, to 1ms
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index a9c5789..849d02d 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3096,7 +3096,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3096 | { | 3096 | { |
3097 | m_host.AddScriptLPS(1); | 3097 | m_host.AddScriptLPS(1); |
3098 | double ScriptTime = Util.GetTimeStampMS() - m_timer; | 3098 | double ScriptTime = Util.GetTimeStampMS() - m_timer; |
3099 | return (ScriptTime / 1000.0); | 3099 | return (float)Math.Round((ScriptTime / 1000.0), 3); |
3100 | } | 3100 | } |
3101 | 3101 | ||
3102 | public void llResetTime() | 3102 | public void llResetTime() |
@@ -3111,7 +3111,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3111 | double now = Util.GetTimeStampMS(); | 3111 | double now = Util.GetTimeStampMS(); |
3112 | double ScriptTime = now - m_timer; | 3112 | double ScriptTime = now - m_timer; |
3113 | m_timer = now; | 3113 | m_timer = now; |
3114 | return (ScriptTime / 1000.0); | 3114 | return (float)Math.Round((ScriptTime / 1000.0), 3); |
3115 | } | 3115 | } |
3116 | 3116 | ||
3117 | public void llSound(string sound, double volume, int queue, int loop) | 3117 | public void llSound(string sound, double volume, int queue, int loop) |