ESScript
Revision_
Main Page
Namespaces
Classes
Files
File List
File Members
esysUtils
src
blocktimer.h
Go to the documentation of this file.
1
2
/*****************************************************************************
3
*
4
* Copyright (c) 2003-2013 by University of Queensland
5
* http://www.uq.edu.au
6
*
7
* Primary Business: Queensland, Australia
8
* Licensed under the Open Software License version 3.0
9
* http://www.opensource.org/licenses/osl-3.0.php
10
*
11
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12
* Development since 2012 by School of Earth Sciences
13
*
14
*****************************************************************************/
15
16
17
#ifndef blocktimer_h
18
#define blocktimer_h
19
20
#include <stdio.h>
21
#include <search.h>
22
#include "
system_dep.h
"
23
24
/* Enable the block timer (or remove this and use -DBLOCKTIMER) */
25
/* # define BLOCKTIMER */
26
27
# define NUM_TIMERS 1024
28
29
ESYSUTILS_DLL_API
30
void
blocktimer_initialize
();
31
ESYSUTILS_DLL_API
32
void
blocktimer_increment
(
__const
char
*name,
double
start_time);
33
ESYSUTILS_DLL_API
34
int
blocktimer_getOrCreateTimerId
(
__const
char
*name);
35
ESYSUTILS_DLL_API
36
void
blocktimer_reportSortByName
();
37
ESYSUTILS_DLL_API
38
void
blocktimer_reportSortByTime
();
39
ESYSUTILS_DLL_API
40
double
blocktimer_time
();
41
42
43
#endif
Generated on Thu Dec 12 2013 03:47:17 for ESScript by
1.8.1.2