-/* Copyright (c) 2016-2018. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2016-2023. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include <chrono>
#include <ratio>
-#include <simgrid/simix.h>
+#include <simgrid/engine.h>
namespace simgrid {
using duration = std::chrono::duration<rep, period>;
using time_point = std::chrono::time_point<SimulationClock, duration>;
static constexpr bool is_steady = true;
- static time_point now()
- {
- return time_point(duration(SIMIX_get_clock()));
- }
+ static time_point now() { return time_point(duration(simgrid_get_clock())); }
};
/** Default duration for simulated time */