Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't assume that
system_clock::now().count() == _Xtime_get_ticks()
(…
…#3681) Part of #1588. `_Xtime_get_ticks` and `system_clock::now` would no longer be equal after a future leap second when #1520 is eventually fixed. This PR changes the clock used in `_To_timespec64_sys_10_day_clamped` to be consistent with code that consumes its result, e.g. `target` in https://github.com/microsoft/STL/blob/091cad2eaaa5bc25873eb7261cae57ab123592f3/stl/src/cond.cpp#L72-L80
- Loading branch information