diff options
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) |