pub fn update_duration(&mut self, key: usize, dur: C) {
        let this = self.info.get_mut(key).expect("Error: unknown key passed to TimingGroup::update_duration");
        this.sum = this.sum + dur;
        self.max = max(self.max, Self::get_proportional(this));
        let min_time = self.info.iter().map(|(_, v)| Self::get_proportional(v)).min().unwrap();
        if min_time != C::default() && false {
            self.max = self.max - min_time;
            for (_, entry) in self.info.iter_mut() { //offset all by disproportion
                entry.sum = entry.sum - min_time.mul_by(entry.proportion);
            }
        }
    }
/// Update execution duration of entry with specific key.
///
/// # Panics
/// Panics if provided key has no associated entry.
Update execution duration of entry with specific key.
Update execution duration of entry with specific key .
pub fn update_duration(&mut self, key: usize, dur: C) {
        let this = self.info.get_mut(key).expect("Error: unknown key passed to TimingGroup::update_duration");
        this.sum = this.sum + dur;
        self.max = max(self.max, Self::get_proportional(this));
        let min_time = self.info.iter().map(|(_, v)| Self::get_proportional(v)).min().unwrap();
        if min_time != C::default() && false {
            self.max = self.max - min_time;
            for (_, entry) in self.info.iter_mut() { //offset all by disproportion
                entry.sum = entry.sum - min_time.mul_by(entry.proportion);
            }
        }
    }
pub fn update_duration ( & mut self , key : usize , dur : C ) { let this = self . info . get_mut ( key ) . expect ( " " ) ; this . sum = this . sum + dur ; self . max = max ( self . max , Self :: get_proportional ( this ) ) ; let min_time = self . info . iter ( ) . map ( | ( _ , v ) | Self :: get_proportional ( v ) ) . min ( ) . unwrap ( ) ; if min_time != C :: default ( ) && false { self . max = self . max - min_time ; for ( _ , entry ) in self . info . iter_mut ( ) { //offset all by disproportion entry . sum = entry . sum - min_time . mul_by ( entry . proportion ) ; } } }
Update execution duration of entry with specific key.
Update execution duration of entry with specific key .
&mut self
key
usize
dur
C
&mut self
key
usize
dur
C
panics
Panics if provided key has no associated entry.
Panics if provided key has no associated entry .