0

How can I set timeout in C++?

// -------------------------
system("..."); // this code run another C++ program using ubuntu terminal.
               // this code could be stuck in a loop
// -------------------------

How can I set some function or something to check whether another code took too long or not so that it can kill it.

Ayxan Haqverdili
  • 23,309
  • 5
  • 37
  • 74
Autoratch
  • 393
  • 2
  • 11

0 Answers0