Beispiel #1
0
        public void EndSample(PerformanceSlots slot)
        {
            Stopwatch sample = Samples[(int)slot, CurrentSampleIndex];

            Debug.Assert(sample.IsRunning);
            sample.Stop();
        }
Beispiel #2
0
        public void BeginSample(PerformanceSlots slot)
        {
            Stopwatch sample = Samples[(int)slot, CurrentSampleIndex];

            Debug.Assert(!sample.IsRunning);
            sample.Restart();
        }