escript  Revision_Unversioneddirectory
blocktimer.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2016 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Apache License, version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16 
17 
18 #ifndef blocktimer_h
19 #define blocktimer_h
20 
21 #include <stdio.h>
22 #include <search.h>
23 #include "system_dep.h"
24 
25 /* Enable the block timer (or remove this and use -DBLOCKTIMER) */
26 /* # define BLOCKTIMER */
27 
28 # define NUM_TIMERS 1024
29 
33 void blocktimer_increment(__const char *name, double start_time);
35 int blocktimer_getOrCreateTimerId(__const char *name);
41 double blocktimer_time();
42 
43 
44 #endif
int blocktimer_getOrCreateTimerId(__const char *name)
Definition: blocktimer.cpp:88
void blocktimer_reportSortByTime()
Definition: blocktimer.cpp:153
#define ESYSUTILS_DLL_API
Definition: esysUtils/src/system_dep.h:31
void blocktimer_increment(__const char *name, double start_time)
Definition: blocktimer.cpp:73
void blocktimer_reportSortByName()
Definition: blocktimer.cpp:132
double blocktimer_time()
Definition: blocktimer.cpp:175
void blocktimer_initialize()
Definition: blocktimer.cpp:45