From 545ab0332288b511d6592bd465fd8660ea1bdd5b Mon Sep 17 00:00:00 2001 From: ccrock4t <15344554+ccrock4t@users.noreply.github.com> Date: Thu, 18 Jan 2024 17:11:47 -0500 Subject: [PATCH] Add a ConsolePlus command to display cycles per second ("/cycles") --- pynars/ConsolePlus.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pynars/ConsolePlus.py b/pynars/ConsolePlus.py index 9f5b4ffb..b6ff2f26 100644 --- a/pynars/ConsolePlus.py +++ b/pynars/ConsolePlus.py @@ -220,6 +220,12 @@ def toggle_silent() -> None: else "closed" }.''') +@cmd_register('cycles') +def cycles(*args: List[str]) -> None: + '''Format: volume [volume:int 0~100] + Set the Output Volume of the console to control its output (same as OpenNARS)''' + current_NARS_interface.print_output( + type=PrintType.INFO, content=f'''Cycles per second is {current_NARS_interface.reasoner.cycles_per_second}.''') @cmd_register(('volume'), (int, 100)) def volume(vol:int) -> None: