Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

sleep function lua

local clock = os.clock
function sleep(n)  -- seconds
  local t0 = clock()
  while clock() - t0 <= n do end
end
 
PREVIOUS NEXT
Tagged: #sleep #function #lua
ADD COMMENT
Topic
Name
2+7 =