Closed bfitzgerald80 closed 2 years ago
Got the same error when running some Unit Tests on Azure DevOps pipelines
Fixed in #50
Version 3.0.1-dev-00037
is on NuGet with this change; if anyone has a chance to test and verify that it fixes their issue, I'll queue up a patch release from main. Thanks!
Looks like a bug was introduced in 3.0 release when
Stopwatch.Frequency
<TimeSpan.TicksPerSecond
. This causesStopwatchToTimeSpanTicks
to be 0, which in turn causesOperation.GetTimestamp()
to be throw a divide by 0 exception. Specifically