From 68e3d2f1a58f286d54009878073f32b5ee28504b Mon Sep 17 00:00:00 2001 From: KjellKod Date: Tue, 10 Dec 2013 15:29:43 -0700 Subject: [PATCH] showing worst times in ms and us --- g2log/test_performance/main_threaded_worst.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/g2log/test_performance/main_threaded_worst.cpp b/g2log/test_performance/main_threaded_worst.cpp index e7b1351..2a82ff1 100644 --- a/g2log/test_performance/main_threaded_worst.cpp +++ b/g2log/test_performance/main_threaded_worst.cpp @@ -122,7 +122,8 @@ int main(int argc, char** argv) for(size_t idx = 0; idx < number_of_threads; ++idx) { std::vector& t_result = threads_result[idx]; - oss << "[Application t" << idx+1 << " worst took: " << (*std::max_element(t_result.begin(), t_result.end())) / 1000 << " ms]" << std::endl; + auto worstUs = (*std::max_element(t_result.begin(), t_result.end())); + oss << "[Application t" << idx+1 << " worst took: " << worstUs / 1000 << " ms (" << worstUs << " us)] " << std::endl; } writeTextToFile(g_measurement_dump,oss.str(), kAppend); std::cout << "Result can be found at:" << g_measurement_dump << std::endl;