Skip to content

TextBoxView uses DateTime.Now for time measurements #1170

Open

Description

@batzen
  • .NET Core Version: All
  • Windows version: 1903
  • 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.

Activity

  1. added this to the Future milestone on Jul 8, 2019
  2. added
    Enhancement Requested
    on Jul 8, 2019
  3. batzen commented on Apr 26, 2020

    @batzen
    ContributorAuthor

    @stevenbrix any news on this?

  4. stevenbrix commented on Apr 26, 2020

    @stevenbrix
    Contributor

    @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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Enhancement Requested

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions