Windows: Fix rounding error when calculating now_us

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