Ejemplo n.º 1
0
        /// <summary>
        /// Returns an <see cref="System.IDisposable"/> that will ignore the profiling between its creation and disposal.
        /// </summary>
        /// <returns>Returns the created <see cref="System.IDisposable"/> as the ignored step.</returns>
        public virtual IDisposable Ignore()
        {
            IProfilingStep ignoredStep = new ProfilingStep(this, "ignored step", null);

            ignoredStep.Discard();
            return(ignoredStep);
        }