Answers for "c++ do every 1 minutes"

C++
0

c++ do every 1 minutes

#include <thread>
#include <chrono>

int main() {

  while (true) {
    std::this_thread::sleep_for(std::chrono::seconds(60));
    // call your c++ code
  }

}
Posted by: Guest on September-07-2021

Browse Popular Code Answers by Language