Example #1
0
 void IDisposable.Dispose()
 {
     if (_parent != null)
     {
         _parent._sw.Stop();
         _parent = null;
     }
     _timing?.Dispose();
 }
 public InnerProfileObject(LightweightProfiler parent, IDisposable timing)
 {
     if (parent != null)
     {
         parent.Count++;
         parent._sw.Start();
     }
     _timing = timing;
     _parent = parent;
 }
Example #3
0
 public InnerProfileObject(LightweightProfiler parent, IDisposable timing)
 {
     if (parent != null)
     {
         parent.Count++;
         parent._sw.Start();
     }
     _timing = timing;
     _parent = parent;
 }
 void IDisposable.Dispose()
 {
     if (_parent != null)
     {
         _parent._sw.Stop();
         _parent = null;
     }
     _timing?.Dispose();
 }