Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines for 2022.
[simgrid.git] / src / kernel / timer / Timer.cpp
index df005ca..5cc19ee 100644 (file)
@@ -1,11 +1,11 @@
-/* Copyright (c) 2021. The SimGrid Team.
+/* Copyright (c) 2021-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. */
 
 #include <simgrid/kernel/Timer.hpp>
-#include <simgrid/simix.h>
+#include <simgrid/s4u/Engine.hpp>
 
 namespace simgrid {
 namespace kernel {
@@ -29,7 +29,7 @@ void Timer::remove()
 bool Timer::execute_all()
 {
   bool result = false;
-  while (not kernel_timers().empty() && SIMIX_get_clock() >= kernel_timers().top().first) {
+  while (not kernel_timers().empty() && s4u::Engine::get_clock() >= kernel_timers().top().first) {
     result = true;
     // FIXME: make the timers being real callbacks (i.e. provide dispatchers that read and expand the args)
     Timer* timer = kernel_timers().top().second;