You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
382 B
C++
11 lines
382 B
C++
static void Sleep(int seconds) {
|
|
if (seconds > 0) {
|
|
LOG_INFO("Sleep %d seconds...", seconds);
|
|
std::this_thread::sleep_for(std::chrono::seconds(seconds));
|
|
}
|
|
}
|
|
|
|
std::cout << std::endl;
|
|
std::cout << "If |seconds| is provided, the server will sleep, for testing "
|
|
<< "timeout, before " << std::endl
|
|
<< "send back each response." << std::endl; |