Mercurial > hg > nginx-quic
view src/core/ngx_times.h @ 309:2e899477243a
nginx-0.0.3-2004-04-09-20:03:04 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 09 Apr 2004 16:03:04 +0000 |
parents | 87e73f067470 |
children | ba876b26b76d |
line wrap: on
line source
#ifndef _NGX_TIMES_H_INCLUDED_ #define _NGX_TIMES_H_INCLUDED_ #include <ngx_config.h> #include <ngx_core.h> void ngx_time_init(); #if (NGX_THREADS) ngx_int_t ngx_time_mutex_init(ngx_log_t *log); #endif void ngx_time_update(time_t s); size_t ngx_http_time(u_char *buf, time_t t); void ngx_gmtime(time_t t, ngx_tm_t *tp); #define ngx_time() ngx_cached_time extern time_t ngx_cached_time; extern ngx_str_t ngx_cached_err_log_time; extern ngx_str_t ngx_cached_http_time; extern ngx_str_t ngx_cached_http_log_time; extern ngx_epoch_msec_t ngx_start_msec; /* * msecs elapsed since ngx_start_msec in the current event cycle, * used in ngx_event_add_timer() and ngx_event_find_timer() */ extern ngx_epoch_msec_t ngx_elapsed_msec; /* * msecs elapsed since ngx_start_msec in the previous event cycle, * used in ngx_event_expire_timers() */ extern ngx_epoch_msec_t ngx_old_elapsed_msec; #endif /* _NGX_TIMES_H_INCLUDED_ */