reduce the resolution of llGetTime and llGetAndResetTime, to 1ms

melanie
UbitUmarov 2016-11-25 21:37:33 +00:00
parent 935510d879
commit 6f1080368d
1 changed files with 2 additions and 2 deletions

View File

@ -3096,7 +3096,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
m_host.AddScriptLPS(1);
double ScriptTime = Util.GetTimeStampMS() - m_timer;
return (ScriptTime / 1000.0);
return (float)Math.Round((ScriptTime / 1000.0), 3);
}
public void llResetTime()
@ -3111,7 +3111,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
double now = Util.GetTimeStampMS();
double ScriptTime = now - m_timer;
m_timer = now;
return (ScriptTime / 1000.0);
return (float)Math.Round((ScriptTime / 1000.0), 3);
}
public void llSound(string sound, double volume, int queue, int loop)