Fix HighresTime discontinuity on Windowsv0.0.1
commit1149eba3427336dd9a72c4d6da5206aa87c223c3
authorIgnacio Burgueño <ignaciob@inconcertcc.com>
Mon, 2 Dec 2013 13:02:49 +0000 (2 11:02 -0200)
committerIgnacio Burgueño <ignaciob@inconcertcc.com>
Mon, 2 Dec 2013 13:02:49 +0000 (2 11:02 -0200)
tree1d7863242645223ca7ed0c1beb43fb773cac9975
parent00ee933a7313b08bb3663c84dbebf042b0434d54
Fix HighresTime discontinuity on Windows

Large performance counter frequency values would cause overflows, even
when 64-bit integers were used to do the multiplication with NANOSEC.
Fix this by using floating point math instead.

This just applies part of this commit:
https://github.com/joyent/libuv/commit/44ecaa7c9821d41aa3d07e584ea19f60db57f448
src/luanode_hrtime.cpp