Aurora.ScriptEngine.AuroraDotNetEngine.APIs.LSL_Api.PScriptSleep C# (CSharp) Метод

PScriptSleep() защищенный Метод

This is the new sleep implementation that allows for us to not freeze the script thread while we run
protected PScriptSleep ( int delay ) : System.DateTime
delay int
Результат System.DateTime
        protected DateTime PScriptSleep(int delay)
        {
            double dly = (delay * m_ScriptDelayFactor);
            if (dly == 0.0)
                return DateTime.Now;

            DateTime timeToStopSleeping = DateTime.Now.AddMilliseconds(dly);
            return timeToStopSleeping;
        }
LSL_Api