lua-aot-5.3 icon indicating copy to clipboard operation
lua-aot-5.3 copied to clipboard

posix.clock_gettime in osx

Open stuta opened this issue 8 years ago • 1 comments
trafficstars

Hello.

luaposix posix.clock_gettime() does not work in osx. I recommend much simpler https://github.com/ldrumm/chronos.

stuta avatar Jun 02 '17 10:06 stuta

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...

hugomg avatar Jun 02 '17 12:06 hugomg