def _run_with_time(self, fn):
        now = time.time()
        try:
            return fn(self.num)
        finally:
            total = time.time() - now
            self.stats.append(TestResult(self, fn, total_time=total))
dataset/ETHPy150Open zzzeek/sqlalchemy/examples/performance/__init__.py/Profiler._run_with_time/original