delay

include

include

include

int main() { std::chrono::milliseconds timespan(2000); // 2000 milliseconds is 2 seconds std::this_thread::sleep_for(timespan); // sleep for 2 seconds return 0; }

Explanation: - The #include directive allows input and output operations to be performed. - The #include directive provides time-related functionality. - The #include directive allows the program to work with threads. - The main() function is the entry point of the program. - std::chrono::milliseconds timespan(2000) creates a duration object representing a time span of 2000 milliseconds (2 seconds). - std::this_thread::sleep_for(timespan) suspends the execution of the current thread for the specified time span. - return 0; is used to indicate successful program execution.