aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-04-21 07:50:19 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-04-21 07:50:19 +0000
commitb4ccb9f5bd1ae7ea59e2f78c31ec713bb10af0ff (patch)
tree73172325b181d406d61fb6880b2535c172663cef /src/http/ngx_http_request.c
parent60472812081386c0f2fda3139aef07a10f095173 (diff)
downloadnginx-b4ccb9f5bd1ae7ea59e2f78c31ec713bb10af0ff.tar.gz
nginx-b4ccb9f5bd1ae7ea59e2f78c31ec713bb10af0ff.zip
$request_time has millisecond precision
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 1a2e1bc27..9b5d02f94 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -212,6 +212,7 @@ ngx_http_init_connection(ngx_connection_t *c)
static void
ngx_http_init_request(ngx_event_t *rev)
{
+ ngx_time_t *tp;
socklen_t len;
ngx_uint_t i;
struct sockaddr_in sin;
@@ -421,7 +422,9 @@ ngx_http_init_request(ngx_event_t *rev)
r->main = r;
- r->start_time = ngx_time();
+ tp = ngx_timeofday();
+ r->start_sec = tp->sec;
+ r->start_msec = tp->msec;
r->method = NGX_HTTP_UNKNOWN;