nblumhardt / serilog-timings

Extends Serilog with support for timed operations
Apache License 2.0
218 stars 21 forks source link

StopwatchToTimeSpanTicks from long to double #50

Closed bfitzgerald80 closed 2 years ago

bfitzgerald80 commented 2 years ago

Changed StopwatchToTimeSpanTicks to double to improve stopwatch resolution and prevent exceptions when Stopwatch.Frequency < TimeSpan.TicksPerSecond.

nblumhardt commented 2 years ago

Thanks for the PR! The failing test is a slightly questionable one, I'll tweak it now on dev.