Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Client] Time calculations using DateTime are susceptible to produce erroneous values when System Time is changed during the calculation process. #2457

Open
2 of 5 tasks
mrsuciu opened this issue Jan 12, 2024 · 0 comments · May be fixed by #2546
Assignees
Labels
client Related to the client library enhancement API or feature enhancement

Comments

@mrsuciu
Copy link
Contributor

mrsuciu commented Jan 12, 2024

Type of issue

  • Bug
  • Enhancement
  • Compliance
  • Question
  • Help wanted

Current Behavior

Computing time intervals using DateTime are susceptible to produce erroneous values when System Time is changed during the calculation process.
The HiResClock should be used instead in such places since it is monotonic.

Expected Behavior

Computing time should be done with a monotonic clock such as existing HiResClock.

Steps To Reproduce

No response

Environment

- OS:
- Environment:
- Runtime:
- Nuget Version:
- Component:
- Server:
- Client:

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Related to the client library enhancement API or feature enhancement
Projects
None yet
3 participants