X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ecd5f7562caf1d443bf22788fa5f4fac408776ec..09392faf42646e631a4e42553e901410eb3e488e:/teshsuite/smpi/timers/timers.c diff --git a/teshsuite/smpi/timers/timers.c b/teshsuite/smpi/timers/timers.c index ad0cab56d8..53100712ff 100644 --- a/teshsuite/smpi/timers/timers.c +++ b/teshsuite/smpi/timers/timers.c @@ -1,3 +1,8 @@ +/* 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 "mpi.h" #include #include @@ -49,7 +54,7 @@ int main(int argc, char* argv[]) clock_gettime(CLOCK_REALTIME, &tp1); clock_gettime(CLOCK_REALTIME, &tp2); if (tp1.tv_sec != tp2.tv_sec || tp1.tv_nsec != tp2.tv_nsec) - printf("Error, two consecutive calls to gettimeofday did not return same time (with running power to 0)\n"); + printf("Error, two consecutive calls to clock_gettime did not return same time (with running power to 0)\n"); // nanosleep for 100ns clock_gettime(CLOCK_REALTIME, &tp1);