Beispiel #1
0
 public PerformanceProfiler(string action)
 {
     Action  = action;
     Watcher = Watchers.GetOrAdd(action, x => new ConcurrentList <TimeSpan>());
     Start   = DateTime.UtcNow;
 }
Beispiel #2
0
 /// <summary>Removes all current handlers from this event.</summary>
 public void ClearHandlers() => Handlers = new ConcurrentList <AsyncEventHandler>();