1 |
|
2 |
/******************************************************* |
3 |
* |
4 |
* Copyright (c) 2003-2008 by University of Queensland |
5 |
* Earth Systems Science Computational Center (ESSCC) |
6 |
* http://www.uq.edu.au/esscc |
7 |
* |
8 |
* Primary Business: Queensland, Australia |
9 |
* Licensed under the Open Software License version 3.0 |
10 |
* http://www.opensource.org/licenses/osl-3.0.php |
11 |
* |
12 |
*******************************************************/ |
13 |
|
14 |
|
15 |
#ifndef blocktimer_h |
16 |
#define blocktimer_h |
17 |
|
18 |
#include <stdio.h> |
19 |
#include <search.h> |
20 |
#include "system_dep.h" |
21 |
|
22 |
/* Enable the block timer (or remove this and use -DBLOCKTIMER) */ |
23 |
/* # define BLOCKTIMER */ |
24 |
|
25 |
# define NUM_TIMERS 1024 |
26 |
|
27 |
ESYSUTILS_DLL_API |
28 |
void blocktimer_initialize(); |
29 |
ESYSUTILS_DLL_API |
30 |
void blocktimer_increment(__const char *name, double start_time); |
31 |
ESYSUTILS_DLL_API |
32 |
int blocktimer_getOrCreateTimerId(__const char *name); |
33 |
ESYSUTILS_DLL_API |
34 |
void blocktimer_reportSortByName(); |
35 |
ESYSUTILS_DLL_API |
36 |
void blocktimer_reportSortByTime(); |
37 |
ESYSUTILS_DLL_API |
38 |
double blocktimer_time(); |
39 |
|
40 |
|
41 |
#endif |