fix from libzmq:

Improve accuracy of time calculations and avoid division by zero when
ticksPerSecond.QuadPart < 1000000.

https://github.com/zeromq/libzmq/commit/1e52a451d68bd274635d7338f114ff708bc0294f