def update(self, duration):
        """Add a recorded duration."""
        if duration >= 0:
            self.histogram.update(duration)
            self.meter.mark()
def update ( self , duration ) : if duration >= 0 : self . histogram . update ( duration ) self . meter . mark ( )
Add a recorded duration.