I am running the 1.9.3.1 version of OpenResty on the Mac.
When I call an lua-function that is FFI-backed I am finding the elapsed-time is coming back as 0 or some other extremely low number.
====
local start = ngx.now()
package.ffiBackedCall()
local stop = ngx.now()
====
This appears to happen even if I put a sleep for 2 seconds in the C code. I tried that on OpenResty 1.7.10.2.
Is there something I missed on this?