From 2b2fd7046e7ba0db15105bd40debb4eac8375d05 Mon Sep 17 00:00:00 2001 From: ccrock4t <15344554+ccrock4t@users.noreply.github.com> Date: Wed, 31 Jan 2024 12:29:52 -0500 Subject: [PATCH] Update Reasoner.py --- pynars/NARS/Control/Reasoner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pynars/NARS/Control/Reasoner.py b/pynars/NARS/Control/Reasoner.py index d2e3e56..dd8af2d 100644 --- a/pynars/NARS/Control/Reasoner.py +++ b/pynars/NARS/Control/Reasoner.py @@ -16,7 +16,7 @@ from typing import Callable, List, Tuple, Union import pynars.NARS.Operation as Operation from pynars import Global -import time +from time import time from pynars.NAL.Functions.Tools import project_truth, project from ..GlobalEval import GlobalEval @@ -82,7 +82,7 @@ def input_narsese(self, text, go_cycle: bool = False) -> Tuple[bool, Union[Task, return success, task, task_overflow def cycle(self): - start_cycle_time_in_seconds = time.time() + start_cycle_time_in_seconds = time() """Everything to do by NARS in a single working cycle""" Global.States.reset() tasks_derived: List[Task] = [] @@ -117,7 +117,7 @@ def cycle(self): """done with cycle""" # record some metrics - total_cycle_duration_in_seconds = time.time() - start_cycle_time_in_seconds + total_cycle_duration_in_seconds = time() - start_cycle_time_in_seconds self.last_cycle_duration = total_cycle_duration_in_seconds self.cycles_per_second_timer += total_cycle_duration_in_seconds self.cycles_per_second_counter += 1