def METHOD_NAME(self, key, value):
    if self._additive:
        self._timing[key] += value
        self.timing_tree_node.self_time += value
    elif self._average is not None:
        self._timing[key].values.append(value)
        self.timing_tree_node.self_time.values.append(value)
    else:
        self._timing[key] = value
        self.timing_tree_node.self_time = value