Browse Source

Use S4U's simgrid_get_clock when available

Samuel Thibault 6 years ago
parent
commit
62ac07adae
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/common/timing.c

+ 4 - 0
src/common/timing.c

@@ -253,7 +253,11 @@ double starpu_timing_timespec_to_us(struct timespec *ts)
 double starpu_timing_now(void)
 {
 #ifdef STARPU_SIMGRID
+#  ifdef HAVE_SIMGRID_ENGINE_H
 	return MSG_get_clock()*1000000;
+#  else
+	return simgrid_get_clock()*1000000;
+#  endif
 #else
 	struct timespec now;
 	_starpu_clock_gettime(&now);