Hi, Why Application.Sleep() is consuming the processor too much?
What else can I use instead of Application.Sleep(). Thanks
What else can I use instead of Application.Sleep(). Thanks
function Sleep(timeInMilliseconds) assert(type(timeInMilliseconds) == "number", "A numeric time in milliseconds is required for Sleep()"); DLL.CallFunction(_SystemFolder .. "\\Kernel32.dll", "Sleep", tostring(timeInMilliseconds), DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL); end
Sleep(10000);
function Sleep(timeInMilliseconds) assert(type(timeInMilliseconds) == "number", "A numeric time in milliseconds is required for Sleep()"); DLL.CallFunction(_SystemFolder .. "\\Kernel32.dll", "Sleep", tostring(timeInMilliseconds), DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL); end
Sleep(10000);
Comment