chaoslawful/lua-nginx-module — pull request #183 by mtourne (2012-12-04 02:20:05+00:00)
Title: Add ngx.req.start_time() API

Following the same example as ngx.now(), ngx.req.start_time() returns a timestamp (including milliseconds as the decimal part)

It is now possible to calculate request time by doing
local request_time = ngx.now() - ngx.req.start_time()