xbt_os_timer_t timer = xbt_os_timer_new();
MSG_init(&argc, argv);
- MSG_create_environment(argv[1]);
+ const char *platform = "../../platforms/cluster.xml";
+ if (argc > 1)
+ platform = argv[1];
+ MSG_create_environment(platform);
MSG_function_register("node", node);
for(int i = 0 ; i< 9; i++) {
xbt_os_cputimer_start(timer);
msg_error_t res = MSG_main();
xbt_os_cputimer_stop(timer);
- XBT_CRITICAL("Simulated time: %g", MSG_get_clock());
+ XBT_INFO("Simulated time: %g", MSG_get_clock());
return res != MSG_OK;
}
> [node-2.acme.org:node:(3) 0.046847] [msg_pmm/VERBOSE] Multiplication done. Send the sub-result.
> [node-5.acme.org:node:(6) 0.046847] [msg_pmm/VERBOSE] Multiplication done. Send the sub-result.
> [node-7.acme.org:node:(8) 0.046847] [msg_pmm/VERBOSE] Multiplication done. Send the sub-result.
-> [0.054659] [msg_pmm/CRITICAL] Simulated time: 0.0546594
+> [0.054659] [msg_pmm/INFO] Simulated time: 0.0546594