diff --git a/test/cxx/MessagePassingTest.cpp b/test/cxx/MessagePassingTest.cpp index 0f8ea7e922..0b15f4f98e 100644 --- a/test/cxx/MessagePassingTest.cpp +++ b/test/cxx/MessagePassingTest.cpp @@ -15,16 +15,16 @@ namespace tut { } void sendMessagesLater() { - std::cout << "sender: sleep 1" << std::endl; + std::cout << SystemTime::getMonotonicUsec() << " sender: sleep 1" << std::endl; syscalls::usleep(20000); - std::cout << "sender: sending hi" << std::endl; + std::cout << SystemTime::getMonotonicUsec() << " sender: sending hi" << std::endl; box->send("hi"); - std::cout << "sender: sent hi" << std::endl; - std::cout << "sender: sleep 2" << std::endl; + std::cout << SystemTime::getMonotonicUsec() << " sender: sent hi" << std::endl; + std::cout << SystemTime::getMonotonicUsec() << " sender: sleep 2" << std::endl; syscalls::usleep(20000); - std::cout << "sender: sending ho" << std::endl; + std::cout << SystemTime::getMonotonicUsec() << " sender: sending ho" << std::endl; box->send("ho"); - std::cout << "sender: sent ho" << std::endl; + std::cout << SystemTime::getMonotonicUsec() << " sender: sent ho" << std::endl; } }; @@ -77,7 +77,7 @@ namespace tut { unsigned long long timeoutUSec = 200000; Timer<> timer; auto m = box->recv("ho", &timeoutUSec); - std::cout << "Done receiving" << std::endl; + std::cout << SystemTime::getMonotonicUsec() << " Done receiving" << std::endl; if (m == nullptr) { std::cout << "Timeout" << std::endl; abort();