Ejemplo n.º 1
0
 public DebuggerTimer(DebuggerStatistics stats, string name)
 {
     stopwatch  = Stopwatch.StartNew();
     this.stats = stats;
     if (stats != null && traceListener != null)
     {
         traceId = Interlocked.Increment(ref traceSeq);
         traceListener.TraceEvent(null, stats.Name, TraceEventType.Start, traceId, name);
     }
 }
Ejemplo n.º 2
0
 public DebuggerTimer(DebuggerStatistics stats)
 {
     stopwatch  = new Stopwatch();
     this.stats = stats;
 }