aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-21 13:18:40 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-21 13:18:40 +0800
commitc687143defd216196d45b902604aabdeed670594 (patch)
treef28fe46c7ad516af43abe4370fad16773c2e55fe
parent537e6c810cbfe8c1d4c81fdcc6d0908d468598ef (diff)
downloadfg21sim-c687143defd216196d45b902604aabdeed670594.tar.bz2
Update the "process time" to "CPU process time"
-rwxr-xr-xbin/fg21sim2
-rw-r--r--fg21sim/webui/handlers/console.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/fg21sim b/bin/fg21sim
index eb45365..0e58551 100755
--- a/bin/fg21sim
+++ b/bin/fg21sim
@@ -65,7 +65,7 @@ def main():
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))
if __name__ == "__main__":
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):