Remove unnecessary cast to double in db perf test 32/253832/2
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 18 Feb 2021 09:43:19 +0000 (10:43 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 18 Feb 2021 12:50:00 +0000 (13:50 +0100)
Change-Id: I7ef26e137010f303c378cb135404a39bf13ec181

misc/db_perf/test_db_perf.cpp

index a7a6780..b48ad18 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved
+ *  Copyright (c) 2020 - 2021 Samsung Electronics Co., Ltd. All rights reserved
  *
  *  Contact: Dongsun Lee <ds73.lee@samsung.com>
  *
@@ -71,7 +71,7 @@ public:
 
        ~Perf() {
                auto end_time = high_resolution_clock::now();
-               double time_elapsed_ms = duration_cast<milliseconds>(end_time - m_start_time).count();
+               auto time_elapsed_ms = duration_cast<milliseconds>(end_time - m_start_time).count();
                BOOST_TEST_MESSAGE("\t<performance> time elapsed: " << time_elapsed_ms <<
                                   "[ms], number of " << m_operation << ": " << m_iterations);