I am trying to unit test a code which requires waiting for a given amount of time. So far I have been using std::this_thread::sleep_for(std::chrono::seconds(waitingTime));
std::this_thread::sleep_for(std::chrono::seconds(waitingTime));