def update(self, duration):
        """Records the duration of an operation."""
        if duration >= 0:
            self.meter.mark()
            self.histogram.update(duration)
dataset/ETHPy150Open cyberdelia/metrology/metrology/instruments/timer.py/Timer.update/original