lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I'm a bit confused by http://luaposix.github.io/luaposix/docs/index.html#gettimeofday
It seems to suggest that posix.gettimeofday() should return two values, but instead it returns a table with 'sec' and 'usec' fields. Further, it claims the second value should be nanoseconds, while http://linux.die.net/man/2/gettimeofday suggests it should be microseconds (which seems to be consistent with the values I'm getting). Is this documentation up to date?

--
Sent from my Game Boy.