Browse Source

fix dumb mistake

Samuel Thibault 5 years ago
parent
commit
c8338756c4
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/common/timing.c

+ 4 - 4
src/common/timing.c

@@ -41,9 +41,9 @@ void _starpu_timing_init(void)
 void _starpu_clock_gettime(struct timespec *ts)
 {
 #ifdef HAVE_SIMGRID_ENGINE_H
-	double now = MSG_get_clock();
-#else
 	double now = simgrid_get_clock();
+#else
+	double now = MSG_get_clock();
 #endif
 	ts->tv_sec = floor(now);
 	ts->tv_nsec = floor((now - ts->tv_sec) * 1000000000);
@@ -254,9 +254,9 @@ double starpu_timing_now(void)
 {
 #ifdef STARPU_SIMGRID
 #  ifdef HAVE_SIMGRID_ENGINE_H
-	return MSG_get_clock()*1000000;
-#  else
 	return simgrid_get_clock()*1000000;
+#  else
+	return MSG_get_clock()*1000000;
 #  endif
 #else
 	struct timespec now;