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()); }
public string Accumulated(string label) { TimeSpan accum = Timers[label].Accumulated; return(string.Format(BlockTimer.TimeFormatString(accum), accum)); }