Skip to content

Commit

Permalink
Update Reasoner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrock4t committed Jan 31, 2024
1 parent 799b9d9 commit 2b2fd70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pynars/NARS/Control/Reasoner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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] = []
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2b2fd70

Please sign in to comment.