static int pinger(
int argc,
char *
argv[])
{
xbt_assert(argc==2,
"The pinger function one argument from the XML deployment file");
*(
double *) ping_task->
data = now;
double sender_time = *((
double *) (pong_task->
data));
XBT_INFO(
"Pong time (bandwidth bound): %.3f", communication_time);
return 0;
}
static int ponger(int argc, char *argv[])
{
xbt_assert(argc==2,
"The ponger function one argument from the XML deployment file");
double sender_time = *((
double *) (ping_task->
data));
XBT_INFO(
" Ping time (latency bound) %f", communication_time);
*(
double *) pong_task->
data = now;
XBT_INFO(
"task_bw->data = %.3f", *((
double*)pong_task->
data));
return 0;
}
int main(
int argc,
char *argv[])
{
xbt_assert(argc > 2,
"Usage: %s platform_file deployment_file\n" "\tExample: %s ../../platforms/small_platform.xml app-pingpong_d.xml\n", argv[0], argv[0]);
}