diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-11-11 21:13:43 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-11-11 21:13:43 +0300 |
commit | 27c30f9919ed695ab718c3365a445d47a14fd80f (patch) | |
tree | b8bd50e2fcecf477f1bb05d61fc7626c06a4442b /src/os/unix/ngx_time.h | |
parent | d59a047a7070dc6af13b2e35c097efccc8ce38d0 (diff) |
nginx-0.0.1-2003-11-11-21:13:43 import
Diffstat (limited to 'src/os/unix/ngx_time.h')
-rw-r--r-- | src/os/unix/ngx_time.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/os/unix/ngx_time.h b/src/os/unix/ngx_time.h index cdec417e2..9dc4aea40 100644 --- a/src/os/unix/ngx_time.h +++ b/src/os/unix/ngx_time.h @@ -3,9 +3,13 @@ #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 (u_int) -1 +#define NGX_MAX_MSEC (ngx_msec_t) -1 typedef struct tm ngx_tm_t; @@ -17,16 +21,14 @@ typedef struct tm ngx_tm_t; #define ngx_tm_year tm_year #define ngx_tm_wday tm_wday -#define ngx_msleep(ms) usleep(ms * 1000) void ngx_localtime(ngx_tm_t *tm); -ngx_msec_t ngx_msec(void); +#define ngx_gettimeofday(tp) gettimeofday(tp, NULL); +#define ngx_msleep(ms) usleep(ms * 1000) -time_t ngx_time(); extern time_t ngx_cached_time; - #endif /* _NGX_TIME_H_INCLUDED_ */ |