Sign in
nginx
/
nginx
/
6de5c2cb63f8aee4bcbec3c363a72fd8e4a4e64d
/
.
/
src
/
os
/
unix
/
ngx_time.c
blob: d4be966dda13e94a5fabee9c3d7f60306b5a1dd0 [
file
] [
log
] [
blame
]
#include
<ngx_config.h>
#include
<ngx_time.h>
void
ngx_localtime
(
ngx_tm_t
*
tm
)
{
time_t
clock
=
time
(
NULL
);
localtime_r
(&
clock
,
tm
);
}
u_int ngx_msec
(
void
)
{
struct
timeval tv
;
gettimeofday
(&
tv
,
NULL
);
return
tv
.
tv_sec
*
1000
+
tv
.
tv_usec
/
1000
;
}