From 0c0061c9e0ca8ef7812891f0f1ca514f6a1a4acc Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Wed, 5 Feb 2025 10:07:57 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=B5=20Adds=20logging=20to=20gait=20per?= =?UTF-8?q?formance=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- esp32/test/gait_performance.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esp32/test/gait_performance.cpp b/esp32/test/gait_performance.cpp index 22cbb08..a429964 100644 --- a/esp32/test/gait_performance.cpp +++ b/esp32/test/gait_performance.cpp @@ -20,7 +20,8 @@ void test_gaitPlanner_calculateStep_time() { unsigned long max_duration = num_steps / 2; // Minimum 0.5 ms per step char message[50]; - snprintf(message, sizeof(message), "The step calculation took: %lu ms", duration); + snprintf(message, sizeof(message), "The step calculation took: %lu ms (%lu ms per iter)", duration, duration / num_steps); + ESP_LOGI("Test planner", message); TEST_ASSERT_MESSAGE(duration <= max_duration, message); }