logging: don't sleep if time is over
@@ -60,7 +60,7 @@ void *logging(void *params_void){
if ((elapsedLog) >= params->log_duration * 1000000 && params->log_duration)
loggingOn = false;
-
+ else
this_thread::sleep_for(chrono::milliseconds(log_period));
}
