Skip to content

Commit ed941db

Browse files
committed
Fix field naming convention in ProfilingScope
1 parent a0ea115 commit ed941db

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

sources/SilkTouch/SilkTouch/Profiling/ProfilingScope.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ namespace Silk.NET.SilkTouch.Profiling;
1010
/// </summary>
1111
internal readonly struct ProfilingScope : IDisposable
1212
{
13-
private readonly string name;
14-
private readonly long timestamp;
13+
private readonly string _name;
14+
private readonly long _timestamp;
1515

1616
public ProfilingScope(string name)
1717
{
18-
this.name = name;
19-
timestamp = Stopwatch.GetTimestamp();
18+
_name = name;
19+
_timestamp = Stopwatch.GetTimestamp();
2020
}
2121

2222
public void Dispose()
2323
{
24-
var elapsed = Stopwatch.GetElapsedTime(timestamp);
24+
var elapsed = Stopwatch.GetElapsedTime(_timestamp);
2525
Console.WriteLine(
2626
"Elapsed time for scope \"{0}\": {1:F3} ms",
27-
name,
27+
_name,
2828
elapsed.TotalMilliseconds
2929
);
3030
}

0 commit comments

Comments
 (0)