pub fn measure(&self, mark: PerformanceMark) -> Duration {
    let measure = PerformanceMeasure::from(mark);
    let duration = measure.duration;
    let mut measures = self.measures.lock().unwrap();
    measures.push_back(measure);
    while measures.len() > self.max_size {
      measures.pop_front();
    }
    duration
  }
/// A function which accepts a previously created performance mark which will
/// be used to finalize the duration of the span being measured, and add the
/// measurement to the internal buffer.
A function which accepts a previously created performance mark which will
be used to finalize the duration of the span being measured, and add the
measurement to the internal buffer.
A function which accepts a previously created performance mark which will be used to finalize the duration of the span being measured and add the measurement to the internal buffer .
pub fn measure(&self, mark: PerformanceMark) -> Duration {
    let measure = PerformanceMeasure::from(mark);
    let duration = measure.duration;
    let mut measures = self.measures.lock().unwrap();
    measures.push_back(measure);
    while measures.len() > self.max_size {
      measures.pop_front();
    }
    duration
  }
pub fn measure ( & self , mark : PerformanceMark ) -> Duration { let measure = PerformanceMeasure :: from ( mark ) ; let duration = measure . duration ; let mut measures = self . measures . lock ( ) . unwrap ( ) ; measures . push_back ( measure ) ; while measures . len ( ) > self . max_size { measures . pop_front ( ) ; } duration }
A function which accepts a previously created performance mark which will
be used to finalize the duration of the span being measured, and add the
measurement to the internal buffer.
A function which accepts a previously created performance mark which will be used to finalize the duration of the span being measured and add the measurement to the internal buffer .
&self
mark
PerformanceMark
&self
mark
PerformanceMark