Rocstar
1.0
Rocstar multiphysics simulation application
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Timing.h
Go to the documentation of this file.
1
/* *******************************************************************
2
* Rocstar Simulation Suite *
3
* Copyright@2015, Illinois Rocstar LLC. All rights reserved. *
4
* *
5
* Illinois Rocstar LLC *
6
* Champaign, IL *
7
* www.illinoisrocstar.com *
8
* sales@illinoisrocstar.com *
9
* *
10
* License: See LICENSE file in top level of distribution package or *
11
* http://opensource.org/licenses/NCSA *
12
*********************************************************************/
13
/* *******************************************************************
14
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
15
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES *
16
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND *
17
* NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR *
18
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
19
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
20
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
21
* USE OR OTHER DEALINGS WITH THE SOFTWARE. *
22
*********************************************************************/
23
// $Id: Timing.h,v 1.3 2008/12/06 08:43:26 mtcampbe Exp $
24
25
#ifndef RFC_TIMING_H
26
#define RFC_TIMING_H
27
28
#include <sys/time.h>
29
#include "
rfc_basic.h
"
30
31
RFC_BEGIN_NAME_SPACE
32
33
inline
double
get_wtime
() {
34
::timeval tv;
35
gettimeofday( &tv, NULL);
36
37
return
tv.tv_sec + tv.tv_usec*1.e-6;
38
}
39
40
RFC_END_NAME_SPACE
41
42
#endif
43
44
45
46
47
48
rfc_basic.h
RFC_END_NAME_SPACE
#define RFC_END_NAME_SPACE
Definition:
rfc_basic.h:29
RFC_BEGIN_NAME_SPACE
#define RFC_BEGIN_NAME_SPACE
Definition:
rfc_basic.h:28
get_wtime
RFC_BEGIN_NAME_SPACE double get_wtime()
Definition:
Timing.h:33
Rocface
include
Base
Timing.h
Generated on Wed Nov 30 2016 16:56:20 for Rocstar by
1.8.5