Example #1
0
        public TimekeeperSnapshot Snapshot()
        {
            lock (_lockObject)
            {
                var snapshot = TimerStatistics;
                TimerStatistics = new TimekeeperSnapshot(Name);
                snapshot.EndCapture();

                return(snapshot);
            }
        }
Example #2
0
 internal StopwatchTimekeeper(string name)
 {
     Name            = name;
     TimerStatistics = new TimekeeperSnapshot(Name);
 }