Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines for 2023.
[simgrid.git] / teshsuite / s4u / evaluate-parse-time / evaluate-parse-time.cpp
index 2eb12c6..5397d38 100644 (file)
@@ -1,11 +1,11 @@
-/* Copyright (c) 2008-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2008-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. */
 
 // teshsuite/s4u/evaluate-parse-time/evaluate-parse-time examples/platforms/g5k.xml
 
-#include <stdio.h>
+#include <cstdio>
 
 #include "simgrid/s4u/Engine.hpp"
 #include "xbt/xbt_os_time.h"
@@ -28,6 +28,6 @@ int main(int argc, char** argv)
     xbt_os_sleep(atoi(argv[2]));
   }
 
-  free(timer);
+  xbt_os_timer_free(timer);
   return 0;
 }