Mercurial > hg > nginx-quic
view src/os/unix/ngx_time.h @ 269:f082cb6bcdd7
nginx-0.0.2-2004-02-25-18:46:57 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 25 Feb 2004 15:46:57 +0000 |
parents | 4c698194c56d |
children | 87e73f067470 |
line wrap: on
line source
#ifndef _NGX_TIME_H_INCLUDED_ #define _NGX_TIME_H_INCLUDED_ #include <ngx_config.h> #include <ngx_core.h> typedef uint64_t ngx_epoch_msec_t; typedef u_int ngx_msec_t; #define NGX_MAX_MSEC (ngx_msec_t) -1 typedef struct tm ngx_tm_t; #define ngx_tm_sec tm_sec #define ngx_tm_min tm_min #define ngx_tm_hour tm_hour #define ngx_tm_mday tm_mday #define ngx_tm_mon tm_mon #define ngx_tm_year tm_year #define ngx_tm_wday tm_wday #ifndef SOLARIS #define ngx_tm_zone tm_zone #endif void ngx_localtime(ngx_tm_t *tm); #define ngx_gettimeofday(tp) gettimeofday(tp, NULL); #define ngx_msleep(ms) usleep(ms * 1000) extern time_t ngx_cached_time; #endif /* _NGX_TIME_H_INCLUDED_ */