socket: sadly uv_hrtime isn't based on the unix epoch
@@ -62,9 +62,9 @@ static inline uint64_t h2o_now(h2o_loop_t *loop)
return uv_now(loop);
}
-static inline uint64_t h2o_now_nanosec(h2o_evloop_t *loop)
+static inline uint64_t h2o_now_nanosec(h2o_loop_t *loop)
{
- return uv_hrtime();
+ return uv_now(loop) * 1000000;
}
inline void h2o_timer_init(h2o_timer_t *timer, h2o_timer_cb cb)
