Skip to content

Conversation

@AlexGuteniev
Copy link
Contributor

@AlexGuteniev AlexGuteniev commented Jul 2, 2020

…nce (#653)"

This reverts commit ad1a26a.

Fixes #971.

…nce (microsoft#653)"

This reverts commit ad1a26a.

# Conflicts:
#	stl/inc/chrono
#	stl/inc/xatomic.h
@AlexGuteniev AlexGuteniev marked this pull request as ready for review July 2, 2020 13:20
@AlexGuteniev AlexGuteniev requested a review from a team as a code owner July 2, 2020 13:20
@BillyONeal
Copy link
Member

Why do you want to revert this?

@BillyONeal
Copy link
Member

Oh I see the linked issue

@CaseyCarter CaseyCarter linked an issue Jul 2, 2020 that may be closed by this pull request
@CaseyCarter CaseyCarter added the bug Something isn't working label Jul 2, 2020
Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:'(

@cbezault
Copy link
Contributor

cbezault commented Jul 2, 2020

Why not just fix the calculation?

@AlexGuteniev
Copy link
Contributor Author

The proposed fix in #971 introduces precision loss if den does not divide by frequency (observed, although rarely).

There are still ways to optimize. _div128 is one of options. Another is to special case 10'000'000 frequency, as it is common. But I think the first thing to do is to fix the bug. And then probably don't touch this anymore.

@StephanTLavavej StephanTLavavej added the high priority Important! label Jul 2, 2020
@StephanTLavavej StephanTLavavej self-assigned this Jul 2, 2020
@StephanTLavavej StephanTLavavej merged commit 5be7d49 into microsoft:master Jul 3, 2020
@StephanTLavavej
Copy link
Member

Thanks again for fixing this so quickly! 😺

@AlexGuteniev AlexGuteniev deleted the undo_chrono_changes branch July 3, 2020 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working high priority Important!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

<chrono>: std::chrono::steady_clock::now() overflow

5 participants