You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TextBoxView uses DateTime.Now for time measurements #1170
Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes
Problem description: TextBoxView uses DateTime.Now inside FullMeasureTick to measure a maximum time frame of 200 milliseconds for line measurements.
As DateTime.Now is "slow" and inaccurate a Stopwatch should be used and the time frame should be expressed as a TimeSpan instead of int or uint.
The same TimeSpan change should apply to the _throttleBackgroundTimer.
Overall, I love the idea of this change. I just want to make sure we've thought about it a little bit more, and can reason about what possible consequences it has. We can continue discussion either here or in the PR (which is where I've added most of my thoughts on this). Does that make sense?
Activity
batzen commentedon Apr 26, 2020
@stevenbrix any news on this?
stevenbrix commentedon Apr 26, 2020
@batzen, sorry for the radio silence.
Overall, I love the idea of this change. I just want to make sure we've thought about it a little bit more, and can reason about what possible consequences it has. We can continue discussion either here or in the PR (which is where I've added most of my thoughts on this). Does that make sense?