Example #1
0
        public void StopCycle()
        {
            if (state != ExecutionTimeProfilerState.ExpectingStop)
                throw new PerformanceProfilerException("Profiler should expect stop");

            cycleStopTicks = DateTime.Now.Ticks;

            calculateDataForCycle();

            checkForPeriodEnd();

            state = ExecutionTimeProfilerState.ExpectingStart;
        }
Example #2
0
        public void StartCycle()
        {
            if (state != ExecutionTimeProfilerState.ExpectingStart)
                throw new PerformanceProfilerException("Profiler should expect start");

            cycleStartTicks = DateTime.Now.Ticks;

            state = ExecutionTimeProfilerState.ExpectingStop;
        }