def add_duration(self, n):
        with self.lock:
            if n > -1:
                self.max = max(self.max, n)
                self.min = min(self.min, n)
                self.count += 1
                self.histogram.add(n)
                if self.count == 1:
                    self.mean = float(n)
                    self.partial_variance = 0.0
                else:
                    new_mean = self.mean + (n - self.mean) / self.count
                    self.partial_variance += (n - self.mean) * (n - new_mean)
                    self.mean = new_mean
            else:
                # TODO: warning?
                pass
            return self.count
Returns all configurable properties of the property group.
dataset/ETHPy150Open wadey/python-ostrich/ostrich/timing.py/Timing.add_duration--crossover with--dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/PropertyGroup.get_configurable_properties