From bae2ab6cab8a0889568d3999954e45aa28bd9b85 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 3 Mar 2017 12:08:37 +0100 Subject: Make sleep time between frames configurable --- main.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index cfa8502..a6963f1 100644 --- a/main.cpp +++ b/main.cpp @@ -243,7 +243,7 @@ int parseInt(const char *str){ } void usage(char **argv){ - cerr<<"Usage: "<]* [-p ]*"<]* [-p ]* [-s ]"< teams; vector robotSpecs; + int sleeptime=3000; if(argc<=1){ usage(argv); @@ -289,6 +290,15 @@ int main(int argc,char **argv){ i+=4; break; + case 's': + if(i>=argc-1){ + cerr<<"Expected sleep time after '-s'"<mvprintf(0, SIZE, "step: %5i", i); -- cgit v1.2.3-70-g09d2