Code: Select all
local clock = os.clock
function sleep(n) -- seconds
local t0 = clock()
while clock() - t0 <= n do end
end
Code: Select all
local clock = os.clock
function sleep(n) -- seconds
local t0 = clock()
while clock() - t0 <= n do end
end
Same effect as os.sleep, except it also wastes CPU power.RBXcpmoderator12345 wrote:not os.sleep i mean this functionCode: Select all
local clock = os.clock function sleep(n) -- seconds local t0 = clock() while clock() - t0 <= n do end end
Users browsing this forum: Majestic-12 [Bot], slime and 2 guests