From c6805dea21b1c3b3435cf75be177789ab2fa5b05 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Tue, 22 Aug 2023 20:28:57 +0300 Subject: [PATCH] Fix printing tests profiling data --- tools/test/source/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test/source/main.cpp b/tools/test/source/main.cpp index 4f3a06d3..fb25f087 100644 --- a/tools/test/source/main.cpp +++ b/tools/test/source/main.cpp @@ -202,8 +202,8 @@ int main(int argc, char ** argv) for (auto const & p : ctx.profile) { std::cout << indent - << std::setfill(' ') << std::setw(max_profile_name_len + 5) << p.name - << psemek::util::pretty(p.duration, std::chrono::milliseconds{1}) + << std::setfill(' ') << std::setw(max_profile_name_len + 5) << std::left << p.name + << psemek::util::pretty(p.duration, std::chrono::microseconds{1}) << (p.ended_with_exception ? " (exception)" : "") << std::endl; }