Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
s4u::Host->getLoad() returns the achieved speed in flops/s
[simgrid.git] / src / s4u / s4u_host.cpp
index da99e12..9b4f49a 100644 (file)
@@ -261,5 +261,10 @@ void Host::execute(double flops)
   simcall_execution_wait(s);
 }
 
+double Host::getLoad()
+{
+  return this->pimpl_cpu->getLoad();
+}
+
 } // namespace simgrid
 } // namespace s4u