Browse Source

adding pause

Stan Gurtler 2 years ago
parent
commit
ab9cbd0081
1 changed files with 6 additions and 0 deletions
  1. 6 0
      prsona/src/experimentQueueMain.cpp

+ 6 - 0
prsona/src/experimentQueueMain.cpp

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