From 0d51ff56d37cbe647688031cf20df7e23a770e18 Mon Sep 17 00:00:00 2001 From: "jinli.yl" Date: Thu, 20 Jun 2024 22:37:41 +0800 Subject: [PATCH] [dev] add global timer --- memory_scope/cli.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/memory_scope/cli.py b/memory_scope/cli.py index 91439b94..96219085 100644 --- a/memory_scope/cli.py +++ b/memory_scope/cli.py @@ -10,7 +10,6 @@ from memory_scope.chat.global_context import GLOBAL_CONTEXT from memory_scope.enumeration.language_enum import LanguageEnum from memory_scope.enumeration.model_enum import ModelEnum from memory_scope.utils.logger import Logger -from memory_scope.utils.timer import Timer from memory_scope.utils.tool_functions import complete_config_name, init_instance_by_config @@ -92,7 +91,7 @@ class CliJob(object): @staticmethod def run(): - with GLOBAL_CONTEXT.thread_pool, Timer("job", log_time=False) as t: + with GLOBAL_CONTEXT.thread_pool: memory_chat = list(GLOBAL_CONTEXT.memory_chat_dict.values())[0] memory_chat.run()