On 02/04/2019 08:23, Italo Maia wrote:
I don't think there's anything in ANSI C that can handle that
Seems to be, but to use it in Lua you need to add it as a library. This is how I handled it
https://github.com/PeterHickman/LuaLibs look in the sleep directory. Works on OSX and Linux, I suspect that it will break on Windows (which I do not have access to)
sleep really does seem to be a glaring omission in Lua, along with time at the millisecond level, but nothing that can't be fixed :)