timeControl correct
This commit is contained in:
parent
80647e5103
commit
f1052acc39
|
@ -138,9 +138,12 @@ void pFlow::timeControl::checkForOutputToFile()
|
||||||
lastSaved_ = currentTime_;
|
lastSaved_ = currentTime_;
|
||||||
save = true;
|
save = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
outputToFile_ = save;
|
outputToFile_ = save;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool pFlow::timeControl::timersReportTime()const
|
bool pFlow::timeControl::timersReportTime()const
|
||||||
|
|
|
@ -235,11 +235,9 @@ pFlow::systemControl::systemControl(
|
||||||
bool pFlow::systemControl::operator ++(int)
|
bool pFlow::systemControl::operator ++(int)
|
||||||
{
|
{
|
||||||
|
|
||||||
// skip writing to file for the first iteration
|
auto toContinue = time()++;
|
||||||
//output<< "time()++"<<endl;
|
|
||||||
auto finished = time()++;
|
|
||||||
|
|
||||||
if(!finished)
|
if(toContinue)
|
||||||
{
|
{
|
||||||
writeToFileTimer_.start();
|
writeToFileTimer_.start();
|
||||||
//if(time().currentIter() != 0 )
|
//if(time().currentIter() != 0 )
|
||||||
|
@ -273,7 +271,7 @@ bool pFlow::systemControl::operator ++(int)
|
||||||
timers_.write(output, true);
|
timers_.write(output, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return finished;
|
return toContinue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue