1. MPI_Allgatherv, version 0.4.1

2. add average RTF computation
This commit is contained in:
zhangshuai 2019-06-19 20:19:58 +08:00
parent 899036df93
commit a6ca00521e
1 changed files with 1 additions and 0 deletions

View File

@ -1067,6 +1067,7 @@ void World::Update()
double wholeAddTime = before_worldUpdateBeginTime + worldUpdateBeginTime + modelUpdateFuncTime + updateCollisionTime + loggingTime + before_updatePhysicsTime + updatePhysicsTime + before_mpiTime + mpiTime + after_mpiTime;
std::cout << "===== average wholeAddTime:\t" << wholeAddTime * 1000.0 / this->dataPtr->iterations << "\tms =====" << std::endl;
std::cout << "===== average wholeUpdateTime:\t" << wholeUpdataTime * 1000.0 / this->dataPtr->iterations << "\tms =====" << std::endl;
std::cout << "===== average RTF:\t" << this->GetSimTime().Double() / this->GetRealTime().Double() << "\t =====" << std::endl;
}
}
#endif