Skip to content

Commit bde5a92

Browse files
committed
add info statements for elapsed time
1 parent 824a0f8 commit bde5a92

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/auto/foundation/core_application/tst_core_application.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ TEST_CASE("Timer handling")
204204
auto time = startTime;
205205
timer.timeout.connect([&]() {
206206
const auto endTime = std::chrono::steady_clock::now();
207+
const auto elapsedTime = std::chrono::duration_cast<std::chrono::milliseconds>(endTime - time).count();
208+
SPDLOG_INFO("elapsedTime = {}", elapsedTime);
207209
REQUIRE(endTime - time > 50ms);
208210
REQUIRE(endTime - time < 200ms);
209211
time = endTime;
@@ -213,6 +215,7 @@ TEST_CASE("Timer handling")
213215
while (std::chrono::steady_clock::now() - startTime < 500ms) {
214216
app.processEvents(500);
215217
}
218+
SPDLOG_INFO("timeout = {}", timeout);
216219
REQUIRE(timeout > 3);
217220
REQUIRE(timeout < 8);
218221

0 commit comments

Comments
 (0)