2002-08-06 12:39:45 -04:00
|
|
|
#ifndef _NGX_TIME_H_INCLUDED_
|
|
|
|
#define _NGX_TIME_H_INCLUDED_
|
|
|
|
|
|
|
|
|
|
|
|
#include <ngx_config.h>
|
|
|
|
|
2002-09-02 10:48:24 -04:00
|
|
|
typedef u_int ngx_msec_t;
|
2003-02-06 14:21:13 -03:00
|
|
|
#define NGX_MAX_MSEC (u_int) ~0
|
2002-09-02 10:48:24 -04:00
|
|
|
|
2002-08-06 12:39:45 -04:00
|
|
|
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
|
|
|
|
|
2002-08-20 10:48:28 -04:00
|
|
|
#define ngx_msleep(ms) usleep(ms * 1000)
|
|
|
|
|
2002-08-06 12:39:45 -04:00
|
|
|
void ngx_localtime(ngx_tm_t *tm);
|
|
|
|
|
2002-09-02 10:48:24 -04:00
|
|
|
ngx_msec_t ngx_msec(void);
|
2002-08-06 12:39:45 -04:00
|
|
|
|
2002-09-12 10:42:29 -04:00
|
|
|
/* STUB */
|
|
|
|
#define ngx_time() time(NULL)
|
|
|
|
|
2002-08-06 12:39:45 -04:00
|
|
|
|
|
|
|
#endif /* _NGX_TIME_H_INCLUDED_ */
|