summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/test/api/omp_get_wtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/runtime/test/api/omp_get_wtime.c')
-rw-r--r--openmp/runtime/test/api/omp_get_wtime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openmp/runtime/test/api/omp_get_wtime.c b/openmp/runtime/test/api/omp_get_wtime.c
index 51dcd4a3eeb..b309440db01 100644
--- a/openmp/runtime/test/api/omp_get_wtime.c
+++ b/openmp/runtime/test/api/omp_get_wtime.c
@@ -9,11 +9,11 @@ int test_omp_get_wtime()
double start;
double end;
double measured_time;
- double wait_time = 5.0;
+ double wait_time = 5.0;
start = 0;
end = 0;
start = omp_get_wtime();
- my_sleep (wait_time);
+ my_sleep (wait_time);
end = omp_get_wtime();
measured_time = end-start;
return ((measured_time > 0.97 * wait_time) && (measured_time < 1.03 * wait_time)) ;
OpenPOWER on IntegriCloud