Skip to content

Use higher-resolution timestamps for metrics #1395

Description

@bgrainger

The metrics use durations computed from Environment.TickCount, which typically has a resolution of 15ms. This isn't fine-grained enough to report DB connection creation times.

Switch to using Stopwatch.GetTimestamp() or a similar high-resolution timer.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions