summaryrefslogtreecommitdiff
path: root/src/include/CactusTimers.h
blob: a4885879cccd9d098952ea1cfc8604e8005843ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
 /*@@
   @header    CactusTimers.h
   @date      Thu Oct  8 18:31:45 1998
   @author    Tom Goodale
   @desc 
   Timer stuff
   @enddesc 
 @@*/


/* $Id$ */

#ifndef _CACTUSTIMERS_H_
#define _CACTUSTIMERS_H_

/*  Typedefs */

typedef struct
{
  double basic[4];
} cInternalTimer;
  
typedef struct
{
  cInternalTimer total;
  cInternalTimer last;  
} cTimer;

/* Function prototypes */

#ifdef __cplusplus
extern "C" {
#endif

cTimer *CactusNewTimer(void);

void CactusStartTimer(cTimer *timer);
void CactusStopTimer(cTimer *timer);
void CactusResetTimer(cTimer *timer);

#ifdef __cplusplus
	   }
#endif

#define INITIALISATION 0
#define EVOLUTION      1
#define ELLIPTIC       2

#endif