diff options
author | Sven Gothel <[email protected]> | 2021-02-10 13:15:54 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-02-10 13:15:54 +0100 |
commit | ebdd8181e364d2ad890bf23d990f11c98efc5a8c (patch) | |
tree | 4596e929858a01e2afdee9ac37504f2183d848b2 /test/test_cow_darray_perf01.cpp | |
parent | dfe5528b8a19f28405960a2372fee145a71528cb (diff) |
Consolidate conversion to hex and decimal string: template<> to_hexstring() and to_decstring(), drop <type>[Hex|Dec]String(..)
Diffstat (limited to 'test/test_cow_darray_perf01.cpp')
-rw-r--r-- | test/test_cow_darray_perf01.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_cow_darray_perf01.cpp b/test/test_cow_darray_perf01.cpp index 4de9906..ca121e5 100644 --- a/test/test_cow_darray_perf01.cpp +++ b/test/test_cow_darray_perf01.cpp @@ -298,7 +298,7 @@ static void print_mem(const std::string& pre, const T& data) { std::size_t bytes_total = data.get_allocator().memory_usage; double overhead = 0 == bytes_total ? 0.0 : ( 0 == bytes_net ? 10.0 : (double)bytes_total / (double)bytes_net ); printf("Mem: %s: Elements %s x %zu bytes; %s, %lf ratio\n", - pre.c_str(), int64DecString(elements, ',', 5).c_str(), + pre.c_str(), to_decstring(elements, ',', 5).c_str(), bytes_element, data.get_allocator().toString(10, 5).c_str(), overhead); // 5: 1,000 // 7: 100,000 |