]> AND Public Git Repository - simgrid.git/blobdiff - examples/smpi/MM/timer.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
An inline declaration without definition does not make sense.
[simgrid.git] / examples / smpi / MM / timer.c
index 4b2e0adcd04abed5a8649d10b88a566d6b8a85da..692e8fa943247be7c6b698c36c99a93a3a0ddbb2 100644 (file)
 #define CLOCK_TIMER CLOCK_MONOTONIC_RAW
  */
 
-inline double get_microsecond(struct timespec *res){
-  return (res->tv_sec*1000000 + res->tv_nsec/1000);
-}
-inline double get_nanosecond(struct timespec *res){
-  return (res->tv_sec*1000000000 + res->tv_nsec);
-}
-inline double get_second(struct timespec *res){
-  return (res->tv_sec + res->tv_nsec/1000000000);
-}
-
-inline int get_time(struct timespec *tp){
+int get_time(struct timespec *tp){
   double time = MPI_Wtime();
   time_t value = (time_t)floor(time);
   time -= (double) value;
   time = time * 1000000000;
   tp->tv_nsec = (long) time;
   tp->tv_sec = value ;
+  return 0;
 }
 
 double get_timediff(struct timespec *start, struct timespec *end){