lua-aot-5.3
lua-aot-5.3 copied to clipboard
posix.clock_gettime in osx
trafficstars
Hello.
luaposix posix.clock_gettime() does not work in osx. I recommend much simpler https://github.com/ldrumm/chronos.
Thanks, I wasn't aware of that library.
That said, I'm wondering if that timing code should be there in the first place. I put the gettime stuff inside run.lua to get more accurate measurements but in my experience the file loading is fast enough that /usr/bin/time would have worked just as well...