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
36
void
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
/*---------------------------------*/
fasp_gettime
void fasp_gettime(REAL *time)
Get system time.
Definition:
AuxTiming.c:36
fasp.h
Main header file for the FASP project.
REAL
#define REAL
Definition:
fasp.h:67
base
src
AuxTiming.c
Generated on Sun Aug 28 2022 17:40:47 for Fast Auxiliary Space Preconditioning by
1.9.2