From ac7b322295b3b14b52541c599fc83ee853d35d0b Mon Sep 17 00:00:00 2001 From: Nick Craver Date: Sun, 27 Mar 2022 19:02:18 -0400 Subject: [PATCH] Fix for #597 Resolves the high performance stopwatch issue. --- src/MiniProfiler.Shared/MiniProfiler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MiniProfiler.Shared/MiniProfiler.cs b/src/MiniProfiler.Shared/MiniProfiler.cs index 0bfd9270..68104218 100644 --- a/src/MiniProfiler.Shared/MiniProfiler.cs +++ b/src/MiniProfiler.Shared/MiniProfiler.cs @@ -360,7 +360,7 @@ internal Timing StepImpl(string name, decimal? minSaveMs = null, bool? includeCh /// The tick count to round. internal decimal GetRoundedMilliseconds(long ticks) { - long times100 = ticks * 100 / TimeSpan.TicksPerMillisecond; + long times100 = ticks * 100000 / Stopwatch.Frequency; return times100 / 100m; }