From b3c2c87d8a63ae64239952fadc68e333812c8f05 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Mon, 31 Dec 2012 09:33:52 -0500 Subject: CycleClock: Reduce wait time for determining cycle tick --- Carpet/CycleClock/src/cycle.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Carpet/CycleClock') diff --git a/Carpet/CycleClock/src/cycle.cc b/Carpet/CycleClock/src/cycle.cc index 3a6b48364..6c02c5c4d 100644 --- a/Carpet/CycleClock/src/cycle.cc +++ b/Carpet/CycleClock/src/cycle.cc @@ -45,7 +45,7 @@ void measure_tick() CCTK_INFO("Measuring CycleClock tick via OpenMP..."); ticks const rstart = getticks(); double const wstart = omp_get_wtime(); - while (omp_get_wtime() < wstart + 1.0) { + while (omp_get_wtime() < wstart + 0.1) { // do nothing, just wait } ticks const rend = getticks(); @@ -60,7 +60,7 @@ void measure_tick() CCTK_INFO("Measuring CycleClock tick via MPI..."); ticks const rstart = getticks(); double const wstart = MPI_Wtime(); - while (MPI_Wtime() < wstart + 1.0) { + while (MPI_Wtime() < wstart + 0.1) { // do nothing, just wait } ticks const rend = getticks(); @@ -75,7 +75,7 @@ void measure_tick() CCTK_INFO("Measuring CycleClock tick via gettimeofday..."); ticks const rstart = getticks(); double const wstart = get_sys_time(); - while (get_sys_time() < wstart + 1.0) { + while (get_sys_time() < wstart + 0.1) { // do nothing, just wait } ticks const rend = getticks(); -- cgit v1.2.3