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