File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
tests/auto/foundation/core_application Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments