Add `other` to the timings of this `PassTimes`.
(&mut self, other: &Self)
| 163 | impl PassTimes { |
| 164 | /// Add `other` to the timings of this `PassTimes`. |
| 165 | pub fn add(&mut self, other: &Self) { |
| 166 | for (a, b) in self.pass.iter_mut().zip(&other.pass[..]) { |
| 167 | a.total += b.total; |
| 168 | a.child += b.child; |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | /// Returns the total amount of time taken by all the passes measured. |
| 173 | pub fn total(&self) -> Duration { |