public override string ToString(TimeUnit timeUnit, int decimalPlaces) { return(base.Name + "\t" + timeUnit.From(this.GetElapsedNanos(), TimeUnit.NANO, decimalPlaces) + " " + timeUnit.ShortName + (base.Description != null ? " - " + base.Description : "") + (this.Steps.Count > 0 ? "\n\t" + String.Join("\n\t", this.Steps.Select(s => s.ToString(timeUnit, decimalPlaces))) + "\n" : "")); }
public override string ToString(TimeUnit timeUnit, int decimalPlaces) { return(base.Name + "\t" + timeUnit.From(this.GetElapsedNanos(), TimeUnit.NANO, decimalPlaces) + " " + timeUnit.ShortName + " " + this.LoopCount + " loops" + (base.Description != null ? " - " + base.Description : "")); }