0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-31 01:43:02 +08:00

Merge pull request #524 from dlittleton/master

Windows: Fix rounding error in now_us. [Jira LIBZMQ-514]
This commit is contained in:
Ian Barber 2013-02-28 14:14:31 -08:00
commit f420f0aff7

View File

@ -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