Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
AuxTiming.c
Go to the documentation of this file.
1
13#include <time.h>
14
15#ifdef _OPENMP
16#include <omp.h>
17#endif
18
19#include "fasp.h"
20#include "fasp_functs.h"
21
22/*---------------------------------*/
23/*-- Public Functions --*/
24/*---------------------------------*/
25
36void fasp_gettime (REAL *time)
37{
38 if ( time != NULL ) {
39#ifdef _OPENMP
40 *time = omp_get_wtime();
41#else
42 *time = (REAL) clock() / CLOCKS_PER_SEC;
43#endif
44 }
45}
46
47/*---------------------------------*/
48/*-- End of File --*/
49/*---------------------------------*/
void fasp_gettime(REAL *time)
Get system time.
Definition: AuxTiming.c:36
Main header file for the FASP project.
#define REAL
Definition: fasp.h:67