diff --git a/src/unix/core.c b/src/unix/core.c index 61d72493..e8e5f9e6 100644 --- a/src/unix/core.c +++ b/src/unix/core.c @@ -340,11 +340,6 @@ void uv_update_time(uv_loop_t* loop) { } -uint64_t uv_now(uv_loop_t* loop) { - return loop->time; -} - - int uv_is_active(const uv_handle_t* handle) { return uv__is_active(handle); } diff --git a/src/uv-common.c b/src/uv-common.c index 8c9d323a..f0792f11 100644 --- a/src/uv-common.c +++ b/src/uv-common.c @@ -429,3 +429,8 @@ void uv_unref(uv_handle_t* handle) { void uv_stop(uv_loop_t* loop) { loop->stop_flag = 1; } + + +uint64_t uv_now(uv_loop_t* loop) { + return loop->time; +} diff --git a/src/win/timer.c b/src/win/timer.c index 7fd10571..8dae7414 100644 --- a/src/win/timer.c +++ b/src/win/timer.c @@ -45,11 +45,6 @@ void uv_update_time(uv_loop_t* loop) { } -uint64_t uv_now(uv_loop_t* loop) { - return loop->time; -} - - static int uv_timer_compare(uv_timer_t* a, uv_timer_t* b) { if (a->due < b->due) return -1;