X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b8df87e176f27b25534f27d7e240defa32ca35bc..3dd753cd9e46d794e00629d03183250aec4a17e4:/include/simgrid/chrono.hpp diff --git a/include/simgrid/chrono.hpp b/include/simgrid/chrono.hpp index 72d9fa8a72..46849ec0eb 100644 --- a/include/simgrid/chrono.hpp +++ b/include/simgrid/chrono.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2016-2019. 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 #include -#include +#include namespace simgrid { @@ -44,10 +44,7 @@ public: using duration = std::chrono::duration; using time_point = std::chrono::time_point; 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 */