You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
I was puzzling why the elapsed macro is not working correctly under windows.
It turns out that this is an upstream bug in libuv, I leave a note here if somebody runs into the same problem: uv_hrtime can return non-incremental values under windows resulting in underflow of (time_ns()-t0)/1e9 in the elapsed macro.
Long ago I had to fix what was basically this same libuv bug on multiple Unix systems; I guess I didn't fix the Windows version at that time because timers are different on Windows, I lacked a Windows system to test on, and this was back before we had a Windows port. But with hindsight...
I was puzzling why the
elapsed
macro is not working correctly under windows.It turns out that this is an upstream bug in libuv, I leave a note here if somebody runs into the same problem:
uv_hrtime
can return non-incremental values under windows resulting in underflow of(time_ns()-t0)/1e9
in theelapsed
macro.Compare joyent/libuv#850.
The text was updated successfully, but these errors were encountered: