From 808ea0191a6bb4cdf4fb335aac685b35d8540480 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 17 Jul 2024 06:59:24 -0700 Subject: [PATCH] Cleanup test --- test/perf-sanity.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/perf-sanity.cc b/test/perf-sanity.cc index 7696b2f1..aa0c0cae 100644 --- a/test/perf-sanity.cc +++ b/test/perf-sanity.cc @@ -19,8 +19,7 @@ int main() { std::atomic_signal_fence(std::memory_order_acq_rel); // Clobber memory. auto end = std::chrono::steady_clock::now(); + // Print time in milliseconds. std::chrono::duration duration = end - start; - double total_time = duration.count() * 1000; // Convert to milliseconds. - fmt::print("Total time for formatting {} strings: {:.1f} ms.\n", n, - total_time); + fmt::print("{:.1f}\n", duration.count() * 1000); }