File tree Expand file tree Collapse file tree
sources/SilkTouch/SilkTouch/Profiling Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,21 +10,21 @@ namespace Silk.NET.SilkTouch.Profiling;
1010/// </summary>
1111internal 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 }
You can’t perform that action at this time.
0 commit comments