Mercurial > hg > nginx
comparison src/core/ngx_times.c @ 190:02a715e85df1
nginx-0.0.1-2003-11-19-00:34:08 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 18 Nov 2003 21:34:08 +0000 |
parents | 3c49eaf3f522 |
children | 8dee38ea9117 |
comparison
equal
deleted
inserted
replaced
189:c966c09be66b | 190:02a715e85df1 |
---|---|
36 ngx_cached_http_log_time.data = cached_http_log_time; | 36 ngx_cached_http_log_time.data = cached_http_log_time; |
37 | 37 |
38 ngx_gettimeofday(&tv); | 38 ngx_gettimeofday(&tv); |
39 ngx_cached_time = tv.tv_sec; | 39 ngx_cached_time = tv.tv_sec; |
40 ngx_time_update(); | 40 ngx_time_update(); |
41 } | |
42 | |
43 | |
44 time_t ngx_time() | |
45 { | |
46 return ngx_cached_time; | |
47 } | 41 } |
48 | 42 |
49 | 43 |
50 void ngx_time_update() | 44 void ngx_time_update() |
51 { | 45 { |