LLVM OpenMP
20.0.0git
runtime
test
api
omp_get_wtick.c
Go to the documentation of this file.
1
// RUN: %libomp-compile-and-run
2
#include <stdio.h>
3
#include "
omp_testsuite.h
"
4
5
int
test_omp_get_wtick
()
6
{
7
double
tick;
8
tick = -1.;
9
tick = omp_get_wtick ();
10
return
((tick > 0.0) && (tick <= 0.01));
11
}
12
13
int
main
()
14
{
15
int
i
;
16
int
num_failed=0;
17
18
for
(
i
= 0;
i
<
REPETITIONS
;
i
++) {
19
if
(!
test_omp_get_wtick
()) {
20
num_failed++;
21
}
22
}
23
return
num_failed;
24
}
i
#define i
Definition:
kmp_stub.cpp:87
test_omp_get_wtick
int test_omp_get_wtick()
Definition:
omp_get_wtick.c:5
main
int main()
Definition:
omp_get_wtick.c:13
omp_testsuite.h
REPETITIONS
#define REPETITIONS
Definition:
omp_testsuite.h:13
Generated on Wed Feb 5 2025 10:57:20 for LLVM OpenMP by
1.9.6