9 #include <fwCore/TimeStamp.hpp> 15 #define fwTestWaitMacro(cond) \ 16 ::fwCore::TimeStamp BOOST_PP_CAT(timeStamp, __LINE__); \ 17 BOOST_PP_CAT(timeStamp, __LINE__).setLifePeriod(1000); \ 18 BOOST_PP_CAT(timeStamp, __LINE__).modified(); \ 19 while(!(cond) && !BOOST_PP_CAT(timeStamp, __LINE__).periodExpired()) \ 21 std::this_thread::sleep_for( std::chrono::milliseconds(10)); \