blob: cdec417e2402512bdfa8c60e8f6a9b19c09ff3aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef _NGX_TIME_H_INCLUDED_
#define _NGX_TIME_H_INCLUDED_
#include <ngx_config.h>
typedef u_int ngx_msec_t;
#define NGX_MAX_MSEC (u_int) -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
#define ngx_msleep(ms) usleep(ms * 1000)
void ngx_localtime(ngx_tm_t *tm);
ngx_msec_t ngx_msec(void);
time_t ngx_time();
extern time_t ngx_cached_time;
#endif /* _NGX_TIME_H_INCLUDED_ */
|