Skip to content

Commit b3ab1a9

Browse files
feature: add new api ngx_stream_lua_ffi_monotonic_msec. (#302)
1 parent a07f317 commit b3ab1a9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ngx_stream_lua_time.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ ngx_stream_lua_ffi_time(void)
4747
}
4848

4949

50+
long
51+
ngx_stream_lua_ffi_monotonic_msec(void)
52+
{
53+
return (long) ngx_current_msec;
54+
}
55+
56+
5057
void
5158
ngx_stream_lua_ffi_update_time(void)
5259
{

0 commit comments

Comments
 (0)