c++ thread wait fro 1 sec
#include <iostream>
#include <thread>
#include <chrono>
int main() {
// Sleep for 1 second
std::this_thread::sleep_for(std::chrono::seconds(1));
return 0;
}
#include <iostream>
#include <thread>
#include <chrono>
int main() {
// Sleep for 1 second
std::this_thread::sleep_for(std::chrono::seconds(1));
return 0;
}