#include<stdio.h>
-#include "msg/msg.h"
+#include "simgrid/msg.h"
#include "xbt/sysdep.h" /* calloc */
#include "simgrid/plugins.h"
double task_time = 0;
host = MSG_host_self();
- double current_peak = MSG_get_host_current_power_peak(host);
+ double current_peak = MSG_host_get_current_power_peak(host);
XBT_INFO("Current power peak=%f", current_peak);
- double consumed_energy = MSG_get_host_consumed_energy(host);
+ double consumed_energy = MSG_host_get_consumed_energy(host);
XBT_INFO("Total energy (Joules): %f", consumed_energy);
// Process 1 - long CPU task
task_time = MSG_get_clock() - task_time;
XBT_INFO("Task simulation time: %e", task_time);
- consumed_energy = MSG_get_host_consumed_energy(host);
+ consumed_energy = MSG_host_get_consumed_energy(host);
XBT_INFO("Total energy (Joules): %f", consumed_energy);
return 0;