From d3630cde600834e2664c4c828c3f7a5f6aaa29db Mon Sep 17 00:00:00 2001 From: a5chin Date: Fri, 24 Jan 2025 14:23:18 +0000 Subject: [PATCH] fix: reorder import statement for Logger in timer.py --- tools/trace/timer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/trace/timer.py b/tools/trace/timer.py index a4953dc..50ad710 100644 --- a/tools/trace/timer.py +++ b/tools/trace/timer.py @@ -43,10 +43,10 @@ def __enter__(self) -> None: def __exit__(self, *exc: object) -> None: """Run when exit ContextManager or Decoraotr.""" - from tools import Logger - self.end = time.time() + from tools import Logger + logger = Logger(self.name) logger.debug("executed in %f ms", self._duration * 1_000)