Answers for "os.sleep lua"

Lua
3

sleep function lua

local clock = os.clock
function sleep(n)  -- seconds
  local t0 = clock()
  while clock() - t0 <= n do end
end
Posted by: Guest on June-01-2020

Browse Popular Code Answers by Language