예제 #1
0
 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" : ""));
 }
예제 #2
0
 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 : ""));
 }