Skip to content

Commit 9c9198c

Browse files
author
Chrono Law
committed
fix msec
1 parent eedf974 commit 9c9198c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ngxpp/NgxClock.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ class NgxClock final
4040

4141
return t.sec + t.msec * 1.0 / 1000;
4242
}
43+
public:
44+
static decltype(ngx_current_msec)& msec()
45+
{
46+
return ngx_current_msec;
47+
}
4348
public:
4449
void sleep(ngx_uint_t sec) const
4550
{

0 commit comments

Comments
 (0)