xref: /phasta/phastaIO/phiotimer_empty/phiotimer.h (revision 98d6580a8ecca5add329d7adadb1985835e1e604)
1 #ifndef PHIOTIMER_EMPTY_H
2 #define PHIOTIMER_EMPTY_H
3 
4 #include<stdlib.h>
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 #define PHASTAIO_OPENTIME(cmd) cmd
11 #define PHASTAIO_CLOSETIME(cmd) cmd
12 #define PHASTAIO_READTIME(cmd,ignored) cmd
13 #define PHASTAIO_WRITETIME(cmd,ignored) cmd
14 
15 enum phastaio_file { GEOMBC_READ, RESTART_READ, RESTART_WRITE };
16 
17 typedef int phastaioTime;
18 struct phastaio_stats;
19 void phastaio_time(phastaioTime*);
20 size_t phastaio_time_diff(phastaioTime*, phastaioTime*);
21 void phastaio_addReadBytes(size_t);
22 void phastaio_addWriteBytes(size_t);
23 void phastaio_addReadTime(size_t);
24 void phastaio_addWriteTime(size_t);
25 void phastaio_setfile(int);
26 void phastaio_addOpenTime(size_t);
27 void phastaio_addCloseTime(size_t);
28 void phastaio_printStats();
29 void phastaio_initStats();
30 
31 #ifdef __cplusplus
32 }
33 #endif
34 
35 #endif
36