#include "private.hpp"
#include "simgrid/host.h"
#include "simgrid/modelchecker.h"
+#include "simgrid/s4u/Engine.hpp"
#include "simgrid/s4u/Exec.hpp"
#include "smpi_comm.hpp"
#include "smpi_utils.hpp"
const papi_counter_t& counter_data = smpi_process()->papi_counters();
for (auto const& pair : counter_data) {
- container->get_variable(pair.first)->set_event(SIMIX_get_clock(), pair.second);
+ container->get_variable(pair.first)->set_event(simgrid::s4u::Engine::get_clock(), pair.second);
}
}
#endif
return gettimeofday(tv, tz);
smpi_bench_end();
- double now = SIMIX_get_clock();
+ double now = simgrid::s4u::Engine::get_clock();
if (tv) {
tv->tv_sec = static_cast<time_t>(now);
#ifdef WIN32
return clock_gettime(clk_id, tp);
//there is only one time in SMPI, so clk_id is ignored.
smpi_bench_end();
- double now = SIMIX_get_clock();
+ double now = simgrid::s4u::Engine::get_clock();
tp->tv_sec = static_cast<time_t>(now);
tp->tv_nsec = static_cast<long int>((now - tp->tv_sec) * 1e9);
if (smpi_wtime_sleep > 0)
double time;
if (smpi_process()->initialized() && not smpi_process()->finalized() && not smpi_process()->sampling()) {
smpi_bench_end();
- time = SIMIX_get_clock();
+ time = simgrid::s4u::Engine::get_clock();
if (smpi_wtime_sleep > 0)
simgrid::s4u::this_actor::sleep_for(smpi_wtime_sleep);
smpi_bench_begin();
} else {
- time = SIMIX_get_clock();
+ time = simgrid::s4u::Engine::get_clock();
}
return time;
}
unsigned long long smpi_rastro_timestamp ()
{
smpi_bench_end();
- double now = SIMIX_get_clock();
+ double now = simgrid::s4u::Engine::get_clock();
auto sec = static_cast<unsigned long long>(now);
unsigned long long pre = (now - sec) * smpi_rastro_resolution();