From 4fa6a8edd44eac1e61f5b9ccd490770306a7d41f Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Tue, 23 Jul 2024 15:59:05 +0200 Subject: Improving performance logging times. --- src/argaze/utils/UtilsFeatures.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/argaze/utils/UtilsFeatures.py b/src/argaze/utils/UtilsFeatures.py index aaa337b..5dbc10c 100644 --- a/src/argaze/utils/UtilsFeatures.py +++ b/src/argaze/utils/UtilsFeatures.py @@ -426,7 +426,7 @@ class LookPerformanceRecorder(FileWriter): super().__init__(**kwargs) - self.header = "Timestamp (ms)", "Time (ms)", "Frequency (Hz)" + self.header = "Real time (ms)", "Frame timestamp (ms)", "Execution time (ms)", "Execution frequency (Hz)" self.__start_time = time.perf_counter() @@ -439,6 +439,7 @@ class LookPerformanceRecorder(FileWriter): log = ( (time.perf_counter() - self.__start_time) * 1e3, + timestamp, t * 1e3, f ) @@ -453,7 +454,7 @@ class WatchPerformanceRecorder(FileWriter): super().__init__(**kwargs) - self.header = "Timestamp (ms)", "Time (ms)", "Frequency (Hz)" + self.header = "Real time (ms)", "Camera timestamp (ms)", "Execution time (ms)", "Execution frequency (Hz)" self.__start_time = time.perf_counter() @@ -466,6 +467,7 @@ class WatchPerformanceRecorder(FileWriter): log = ( (time.perf_counter() - self.__start_time) * 1e3, + timestamp, t * 1e3, f ) -- cgit v1.1