Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
factor get_remaining across acitvities
[simgrid.git] / src / kernel / activity / ActivityImpl.cpp
index d50f13c..2065487 100644 (file)
@@ -20,6 +20,11 @@ ActivityImpl::~ActivityImpl()
   }
 }
 
+double ActivityImpl::get_remaining() const
+{
+  return surf_action_ ? surf_action_->get_remains() : 0;
+}
+
 void ActivityImpl::suspend()
 {
   if (surf_action_ == nullptr)