Exemple #1
0
 protected void TracePerf(OpTime time, int?labelPad = null)
 {
     if (TraceEnabled)
     {
         TracePerf(time.Format(labelPad));
     }
 }
Exemple #2
0
        /// <summary>
        /// Collects operation timing
        /// </summary>
        /// <param name="time">The time to collect</param>
        /// <param name="labelPad">For tracing, the width of the timing label</param>
        protected void Collect(OpTime time, int?labelPad = null)
        {
            Enqueue(time);

            if (TraceEnabled)
            {
                TracePerf(time.Format(labelPad));
            }
        }