Skip to content

Commit 1b0a827

Browse files
committed
Fixed net7+ naming issue.
1 parent b7e2c59 commit 1b0a827

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Autofac/Diagnostics/ValueStopwatch.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace Autofac.Diagnostics;
1515
internal struct ValueStopwatch
1616
{
1717
#if !NET7_0_OR_GREATER
18-
private static readonly double TimestampToTicks = TimeSpan.TicksPerSecond / (double)Stopwatch.Frequency;
18+
private static readonly double _timestampToTicks = TimeSpan.TicksPerSecond / (double)Stopwatch.Frequency;
1919
#endif
2020

2121
private readonly long _startTimestamp;
@@ -46,7 +46,7 @@ public static TimeSpan GetElapsedTime(long startingTimestamp, long endingTimesta
4646
{
4747
#if !NET7_0_OR_GREATER
4848
var timestampDelta = endingTimestamp - startingTimestamp;
49-
var ticks = (long)(TimestampToTicks * timestampDelta);
49+
var ticks = (long)(_timestampToTicks * timestampDelta);
5050
return new TimeSpan(ticks);
5151
#else
5252
return Stopwatch.GetElapsedTime(startingTimestamp, endingTimestamp);

0 commit comments

Comments
 (0)