diff options
author | Erik Schnetter <schnetter@gmail.com> | 2012-12-31 09:33:52 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2012-12-31 09:33:52 -0500 |
commit | b3c2c87d8a63ae64239952fadc68e333812c8f05 (patch) | |
tree | 733be45050b28db2006bafce35e8bf845f35aa31 /Carpet | |
parent | 60c59fafbc23afa4ef175f624f0c310050271650 (diff) |
CycleClock: Reduce wait time for determining cycle tick
Diffstat (limited to 'Carpet')
-rw-r--r-- | Carpet/CycleClock/src/cycle.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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(); |