// started it). SimDAG I see you!
// TODO: do the same for other activity kinds once comms are cleaned up
auto* exec = dynamic_cast<activity::ExecImpl*>(action->get_activity());
- if (exec != nullptr && exec->get_actor() == maestro_)
+ if (exec != nullptr && exec->get_actor() == maestro_) {
+ exec->set_finish_time(action->get_finish_time());
exec->get_iface()->complete(s4u::Activity::State::FINISHED);
-
+ }
activity::ActivityImplPtr(action->get_activity())->post();
}
}
void set_cb_id(unsigned int cb_id) { cb_id_ = cb_id; }
double get_start_time() const { return start_time_; }
+ void set_finish_time(double finish_time) { finish_time_ = finish_time; }
double get_finish_time() const { return finish_time_; }
ExecImpl& set_flops_amount(double flop_amount);