reduce the resolution of llGetTime and llGetAndResetTime, to 1ms
parent
935510d879
commit
6f1080368d
|
@ -3096,7 +3096,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
double ScriptTime = Util.GetTimeStampMS() - m_timer;
|
double ScriptTime = Util.GetTimeStampMS() - m_timer;
|
||||||
return (ScriptTime / 1000.0);
|
return (float)Math.Round((ScriptTime / 1000.0), 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void llResetTime()
|
public void llResetTime()
|
||||||
|
@ -3111,7 +3111,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
double now = Util.GetTimeStampMS();
|
double now = Util.GetTimeStampMS();
|
||||||
double ScriptTime = now - m_timer;
|
double ScriptTime = now - m_timer;
|
||||||
m_timer = now;
|
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)
|
public void llSound(string sound, double volume, int queue, int loop)
|
||||||
|
|
Loading…
Reference in New Issue