Bladeren bron

adding pause

Stan Gurtler 2 jaren geleden
bovenliggende
commit
ab9cbd0081
1 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 6 0
      prsona/src/experimentQueueMain.cpp

+ 6 - 0
prsona/src/experimentQueueMain.cpp

@@ -8,6 +8,8 @@
 
 
 #include <iostream>
 #include <iostream>
 #include <fstream>
 #include <fstream>
+#include <thread>
+#include <chrono>
 #include <cstring>
 #include <cstring>
 #include <cstdlib>
 #include <cstdlib>
 #include <csignal>
 #include <csignal>
@@ -15,6 +17,8 @@
 #include <sys/types.h>
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <sys/wait.h>
 
 
+const std::chrono::seconds FIVE_SECONDS(5);
+
 const char *ORCHESTRATOR = "bin/orchestrator";
 const char *ORCHESTRATOR = "bin/orchestrator";
 const char *SHUT_DOWN = "scripts/bringDownTestServers.sh";
 const char *SHUT_DOWN = "scripts/bringDownTestServers.sh";
 const int INPUT_BUFFER_LEN = 133;
 const int INPUT_BUFFER_LEN = 133;
@@ -116,6 +120,8 @@ int main(int argc, char* argv[])
             }
             }
             currPid = 0;
             currPid = 0;
         }
         }
+
+        std::this_thread::sleep_for(FIVE_SECONDS);
     }
     }
 
 
     return 0;
     return 0;