示例#1
0
        public override string ToString()
        {
            var b = new StringBuilder(Name);

            if (!SubName.IsNullOrWhiteSpace())
            {
                b.Append('.').Append(SubName);
            }
            b.Append(" - ").Append(Count);
            if (Total != 0)
            {
                b.Append(" of ").Append(Total);
            }
            b.Append($" in {Elapsed.Format()} at {PerSecond.ToString("0.00")}/sec");
            if (Total != 0)
            {
                b.Append($" with {Remaining} or {TimeRemaining.Format()} remaining");
            }
            return(b.ToString());
        }