Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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
  }

}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #minutes
ADD COMMENT
Topic
Name
2+4 =