From a6ca00521e70b68d32daf3e7081f5cc91b3316c7 Mon Sep 17 00:00:00 2001 From: zhangshuai Date: Wed, 19 Jun 2019 20:19:58 +0800 Subject: [PATCH] 1. MPI_Allgatherv, version 0.4.1 2. add average RTF computation --- Gazebo_Distributed_MPI/gazebo/physics/World.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/Gazebo_Distributed_MPI/gazebo/physics/World.cc b/Gazebo_Distributed_MPI/gazebo/physics/World.cc index 429ec3b..e275dbe 100644 --- a/Gazebo_Distributed_MPI/gazebo/physics/World.cc +++ b/Gazebo_Distributed_MPI/gazebo/physics/World.cc @@ -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