Develop 1.8 #20

Merged
Kan18 merged 242 commits from develop-1.8 into master-1.8 2019-11-10 20:52:08 -05:00
Showing only changes of commit 1e011c8bbd - Show all commits

View File

@@ -27,6 +27,13 @@ function Util.tryTimes(attempts, f, ...)
return unpack(result)
end
function Util.Timer()
local ct = os.clock()
return function()
return os.clock() - ct
end
end
function Util.throttle(fn)
local ts = os.clock()
local timeout = .095