Ejemplo n.º 1
0
        public string AllAccumulatedTimes(string prefix = "Times:", string separator = " ")
        {
            var b = new StringBuilder();

            b.Append(prefix + " ");
            foreach (string label in Order)
            {
                TimeSpan span = Timers[label].Accumulated;
                b.Append(label + ": " + string.Format(BlockTimer.TimeFormatString(span), span) + separator);
            }
            return(b.ToString());
        }
Ejemplo n.º 2
0
        public string Accumulated(string label)
        {
            TimeSpan accum = Timers[label].Accumulated;

            return(string.Format(BlockTimer.TimeFormatString(accum), accum));
        }