Exemplo n.º 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" : ""));
 }
Exemplo 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 : ""));
 }