public TimekeeperSnapshot Snapshot() { lock (_lockObject) { var snapshot = TimerStatistics; TimerStatistics = new TimekeeperSnapshot(Name); snapshot.EndCapture(); return(snapshot); } }
internal StopwatchTimekeeper(string name) { Name = name; TimerStatistics = new TimekeeperSnapshot(Name); }