[Solved] taking specific time then output result?


C++11 solution

#include <iostream>
#include <chrono>
#include <thread>

int main() {
    using namespace std::literals;
    std::this_thread::sleep_for(5s);
    std::cout << "Hello world" << std::endl;
}

Read more http://en.cppreference.com/w/cpp/thread/sleep_for

solved taking specific time then output result?