LevelS C support library  3.50
walltime_c.h
Go to the documentation of this file.
1 /*
2  * This file is part of libc_utils.
3  *
4  * libc_utils is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * libc_utils is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with libc_utils; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 /*
20  * libc_utils is being developed at the Max-Planck-Institut fuer Astrophysik
21  * and financially supported by the Deutsches Zentrum fuer Luft- und Raumfahrt
22  * (DLR).
23  */
24 
25 /*! \file walltime_c.h
26  * Functionality for reading wall clock time
27  *
28  * Copyright (C) 2010 Max-Planck-Society
29  * \author Martin Reinecke
30  */
31 
32 #ifndef PLANCK_WALLTIME_C_H
33 #define PLANCK_WALLTIME_C_H
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 /*! Returns an approximation of the current wall time (in seconds).
40  The first available of the following timers will be used:
41  <ul>
42  <li> \a omp_get_wtime(), if OpenMP is available
43  <li> \a MPI_Wtime(), if MPI is available
44  <li> \a gettimeofday() otherwise
45  </ul>
46  \note Only useful for measuring time differences.
47  \note This function has an execution time between 10 and 100 nanoseconds. */
48 double wallTime(void);
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif
double wallTime(void)
Definition: walltime_c.c:45

Generated on Mon Dec 10 2018 10:24:19 for LevelS C support library