fn observe(&mut self, duration: Duration) {
        if self.num_samples == 0 {
            self.min_duration = duration;
            self.num_samples = 1;
        } else {
            self.min_duration = self.min_duration.min(duration);
            self.num_samples += 1;
        }
    }
/// Observe a new duration measurement.
Observe a new duration measurement.
Observe a new duration measurement .
fn observe(&mut self, duration: Duration) {
        if self.num_samples == 0 {
            self.min_duration = duration;
            self.num_samples = 1;
        } else {
            self.min_duration = self.min_duration.min(duration);
            self.num_samples += 1;
        }
    }
fn observe ( & mut self , duration : Duration ) { if self . num_samples == 0 { self . min_duration = duration ; self . num_samples = 1 ; } else { self . min_duration = self . min_duration . min ( duration ) ; self . num_samples += 1 ; } }
Observe a new duration measurement.
Observe a new duration measurement .
&mut self
duration
Duration
&mut self
duration
Duration