LLVM OpenMP 22.0.0git
omp_get_wtime.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "omp_testsuite.h"
#include "omp_my_sleep.h"

Go to the source code of this file.

Macros

#define NTIMES   100
#define ASSERT_CMP(lhs, cmp, rhs)

Functions

int main ()

Macro Definition Documentation

◆ ASSERT_CMP

#define ASSERT_CMP ( lhs,
cmp,
rhs )
Value:
if (!((lhs)cmp(rhs))) { \
printf("Expected: (" #lhs ") " #cmp " (" #rhs "), actual: %e vs. %e", lhs, \
rhs); \
return EXIT_FAILURE; \
}

Definition at line 9 of file omp_get_wtime.c.

Referenced by main().

◆ NTIMES

#define NTIMES   100

Definition at line 7 of file omp_get_wtime.c.

Referenced by main().

Function Documentation

◆ main()

int main ( void )

Definition at line 16 of file omp_get_wtime.c.

References ASSERT_CMP, end, i, NTIMES, and omp_get_wtime().