Ejemplo n.º 1
0
 public IDisposable MeasureDuration()
 {
     return(DurationMeasurer.MeasureDuration(d => this.Duration = d));
 }
Ejemplo n.º 2
0
 public IDisposable ReportDeploymentTime()
 {
     return(DurationMeasurer.MeasureDuration(duration => this.deploymentTime.Update(duration.TotalSeconds, new string[] { true.ToString() })));
 }
 public IDisposable MeasureTime(string command)
 {
     return(DurationMeasurer.MeasureDuration(duration => this.commandTiming.Set(duration.TotalSeconds, new string[] { command, true.ToString() })));
 }