Although the documentation says it otherwise, the call to `ngx.now()` never returns milliseconds. Is there anything I'm missing here?
What I really need is to get the execution time of a function call. However, the calls do not take longer than a second, meaning that I need to have the milliseconds part of the execution time. Can anybody here help me with this?
That's what the function looks like:
```
function _M.time(f)
local start_time = ngx.now()
local ret = { f() }
local end_time = ngx.now()
return ret, (end_time - start_time)
end
```
Thanks!