Commit f420f0af authored by Ian Barber's avatar Ian Barber

Merge pull request #524 from dlittleton/master

Windows: Fix rounding error in now_us. [Jira LIBZMQ-514]
parents 22d9d95d 1e52a451
......@@ -66,7 +66,7 @@ uint64_t zmq::clock_t::now_us ()
// Convert the tick number into the number of seconds
// since the system was started.
double ticks_div = (double) (ticksPerSecond.QuadPart / 1000000);
double ticks_div = ticksPerSecond.QuadPart / 1000000.0;
return (uint64_t) (tick.QuadPart / ticks_div);
#elif defined HAVE_CLOCK_GETTIME && defined CLOCK_MONOTONIC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment