13 lines · cpp
1#include <chrono>2#include <thread>3 4volatile int release_flag = 0;5 6int main(int argc, char const *argv[])7{8 while (! release_flag) // Wait for debugger to attach9 std::this_thread::sleep_for(std::chrono::seconds(3));10 11 return 0;12}13