-/** Test function */
-MSG_error_t test_all(const char *platform_file,
- const char *application_file)
-{
-
- MSG_error_t res = MSG_OK;
-
-
-
- INFO0("test_all");
-
- /* Simulation setting */
- MSG_set_channel_number(MAX_CHANNEL);
- MSG_paje_output("msg_test.trace");
- MSG_create_environment(platform_file);
-
- /* Application deployment */
- MSG_function_register("sender", sender);
- MSG_function_register("receiver", receiver);
-
- MSG_launch_application(application_file);
-
- res = MSG_main();
-
- return res;
-} /* end_of_test_all */
+ /* Get Bandwidth */
+ a = MSG_task_receive(&task_bw,MSG_host_get_name(MSG_host_self()));
+ xbt_assert(a == MSG_OK, "Unexpected behavior");
+
+ time1 = MSG_get_clock();
+ sender_time = *((double *) (task_bw->data));
+ time = sender_time;
+ communication_time = time1 - time;
+ XBT_INFO("Task received : %s", task_bw->name);
+ xbt_free(task_bw->data);
+ MSG_task_destroy(task_bw);
+ XBT_INFO("Communic. time %e", communication_time);
+ XBT_INFO("--- bw %f ----", task_comm_size_bw / communication_time);