aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2021-09-01 13:57:45 +0200
committerJon Atack <jon@atack.com>2021-09-01 15:12:52 +0200
commit3f4c6b87f1098436693c4990f2082515ec0ece26 (patch)
tree2b5d15b9d43c63a277ce66b816de1ce397353ee1 /src/test
parentb7a17444e0746c562ae97b26eba431577947b06a (diff)
log, timer: add timing macro in usec LOG_TIME_MICROS_WITH_CATEGORY
and update BCLog::LogMsg() to omit irrelevant decimals for microseconds and skip unneeded code and math.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/logging_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/logging_tests.cpp b/src/test/logging_tests.cpp
index e99c6e0fc8..e2e31c62d7 100644
--- a/src/test/logging_tests.cpp
+++ b/src/test/logging_tests.cpp
@@ -27,7 +27,7 @@ BOOST_AUTO_TEST_CASE(logging_timer)
SetMockTime(1);
auto micro_timer = BCLog::Timer<std::chrono::microseconds>("tests", "end_msg");
SetMockTime(2);
- BOOST_CHECK_EQUAL(micro_timer.LogMsg("test micros"), "tests: test micros (1000000.00μs)");
+ BOOST_CHECK_EQUAL(micro_timer.LogMsg("test micros"), "tests: test micros (1000000μs)");
}
BOOST_AUTO_TEST_SUITE_END()