1 2 3 4 5 6 7 8
local ffi = require 'ffi' ffi.cdef[[ void Sleep(unsigned long dwMilliseconds); ]] return function (time) ffi.C.Sleep(time) end