“Not waiting” alternative for std::this_thread::sleep_for

后端 未结 0 478
花落未央
花落未央 2021-01-26 13:41

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));

相关标签:
回答
  • 消灭零回复
提交回复
热议问题