

@contextmanager
def Measure(self, source=None):
    start_time = time.time()
    (yield)
    end_time = time.time()
    if source:
        self(source, (end_time - start_time))
    else:
        self((end_time - start_time))

dataset/ETHPy150Open steveniemitz/scales/scales/varz.py VarzTimerBase.Measure/original