def __call__(self, func):

    @functools.wraps(func)
    def Decorated(*args, **kwargs):
      start_time = time.time()
      res = None
      try:
        res = func(*args, **kwargs)
      finally:
        total_time = start_time - time.time()
        STATS.RecordEvent(self.varname, total_time, fields=self.fields)

      return res

    return Decorated
dataset/ETHPy150Open google/grr/grr/lib/stats.py/Timed.__call__/swapped operands of `-`