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.

Aykhan Hagverdili
  • 28,141
  • 6
  • 41
  • 93
Autoratch
  • 393
  • 2
  • 11

0 Answers0