Skip to content

Use higher-resolution timestamps for metrics #1395

Closed
@bgrainger

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions