Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines for 2022.
[simgrid.git] / include / simgrid / chrono.hpp
index 8f5b480..46849ec 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2016-2017. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2016-2022. 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. */
@@ -15,7 +15,7 @@
 #include <chrono>
 #include <ratio>
 
-#include <simgrid/simix.h>
+#include <simgrid/engine.h>
 
 namespace simgrid {
 
@@ -44,10 +44,7 @@ public:
   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 */