From c687143defd216196d45b902604aabdeed670594 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 21 Nov 2016 13:18:40 +0800 Subject: Update the "process time" to "CPU process time" --- fg21sim/webui/handlers/console.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fg21sim/webui') diff --git a/fg21sim/webui/handlers/console.py b/fg21sim/webui/handlers/console.py index 07b191c..fece851 100644 --- a/fg21sim/webui/handlers/console.py +++ b/fg21sim/webui/handlers/console.py @@ -186,7 +186,7 @@ class ConsoleAJAXHandler(BaseRequestHandler): t1_stop = time.perf_counter() t2_stop = time.process_time() logger.info("Elapsed time: {0:.3f} (s)".format(t1_stop - t1_start)) - logger.info("Process time: {0:.3f} (s)".format(t2_stop - t2_start)) + logger.info("CPU process time: {0:.3f} (s)".format(t2_stop - t2_start)) # NOTE: always return a tuple of (success, error) return (True, None) @@ -205,7 +205,7 @@ class ConsoleAJAXHandler(BaseRequestHandler): t1_stop = time.perf_counter() t2_stop = time.process_time() logger.info("Elapsed time: {0:.3f} (s)".format(t1_stop - t1_start)) - logger.info("Process time: {0:.3f} (s)".format(t2_stop - t2_start)) + logger.info("CPU process time: {0:.3f} (s)".format(t2_stop - t2_start)) return (True, None) def _task_callback(self, future): -- cgit v1.2.2