diff options
Diffstat (limited to '3rdparty/libuv/src/win/timer.c')
-rw-r--r-- | 3rdparty/libuv/src/win/timer.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/3rdparty/libuv/src/win/timer.c b/3rdparty/libuv/src/win/timer.c index 0da541a2c86..27ca7716af6 100644 --- a/3rdparty/libuv/src/win/timer.c +++ b/3rdparty/libuv/src/win/timer.c @@ -34,13 +34,8 @@ void uv_update_time(uv_loop_t* loop) { uint64_t new_time = uv__hrtime(UV__MILLISEC); - if (new_time > loop->time) { - loop->time = new_time; - } -} - -void uv__time_forward(uv_loop_t* loop, uint64_t msecs) { - loop->time += msecs; + assert(new_time >= loop->time); + loop->time = new_time; } |