#include <thread> #include <chrono> int main() { while (true) { std::this_thread::sleep_for(std::chrono::seconds(60)); // call your c++ code } }