mailbox_out->put(payload, 1);
/* - ... then wait for the (large) pong */
- const auto* sender_time = static_cast<double*>(mailbox_in->get());
+ const auto* sender_time = mailbox_in->get<double>();
double communication_time = simgrid::s4u::Engine::get_clock() - *sender_time;
XBT_INFO("Payload received : large communication (bandwidth bound)");
XBT_INFO("Pong from mailbox %s to mailbox %s", mailbox_in->get_name().c_str(), mailbox_out->get_name().c_str());
/* - Receive the (small) ping first ....*/
- const auto* sender_time = static_cast<double*>(mailbox_in->get());
+ const auto* sender_time = mailbox_in->get<double>();
double communication_time = simgrid::s4u::Engine::get_clock() - *sender_time;
XBT_INFO("Payload received : small communication (latency bound)");
XBT_INFO("Ping time (latency bound) %f", communication_time);