Mercurial > hg > nginx-ranges
comparison src/core/ngx_times.c @ 106:45f7329b4bd0 NGINX_0_3_0
nginx 0.3.0
*) Change: the 10-days live time limit of worker process was
eliminated. The limit was introduced because of millisecond timers
overflow.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 07 Oct 2005 00:00:00 +0400 |
parents | 77969b24f355 |
children | 408f195b3482 |
comparison
equal
deleted
inserted
replaced
105:531d62c2a28d | 106:45f7329b4bd0 |
---|---|
6 | 6 |
7 #include <ngx_config.h> | 7 #include <ngx_config.h> |
8 #include <ngx_core.h> | 8 #include <ngx_core.h> |
9 | 9 |
10 | 10 |
11 ngx_epoch_msec_t ngx_elapsed_msec; | 11 ngx_msec_t ngx_current_time; |
12 ngx_epoch_msec_t ngx_old_elapsed_msec; | 12 |
13 ngx_epoch_msec_t ngx_start_msec; | 13 ngx_int_t ngx_gmtoff; |
14 | |
15 ngx_int_t ngx_gmtoff; | |
16 | 14 |
17 static ngx_tm_t ngx_cached_gmtime; | 15 static ngx_tm_t ngx_cached_gmtime; |
18 | 16 |
19 | 17 |
20 /* | 18 /* |
89 ngx_cached_time = &cached_time[0]; | 87 ngx_cached_time = &cached_time[0]; |
90 #endif | 88 #endif |
91 | 89 |
92 ngx_gettimeofday(&tv); | 90 ngx_gettimeofday(&tv); |
93 | 91 |
94 ngx_start_msec = (ngx_epoch_msec_t) tv.tv_sec * 1000 + tv.tv_usec / 1000; | 92 ngx_current_time = (ngx_msec_t) tv.tv_sec * 1000 + tv.tv_usec / 1000; |
95 ngx_old_elapsed_msec = 0; | |
96 ngx_elapsed_msec = 0; | |
97 | 93 |
98 #if !(NGX_WIN32) | 94 #if !(NGX_WIN32) |
99 tzset(); | 95 tzset(); |
100 #endif | 96 #endif |
101 | 97 |