escript  Revision_4925
blocktimer.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2014 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 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);
41 double blocktimer_time();
42 
43 
44 #endif
void blocktimer_reportSortByTime()
Definition: blocktimer.cpp:153
void blocktimer_increment(char *name, double start_time)
Definition: blocktimer.cpp:73
#define ESYSUTILS_DLL_API
Definition: esysUtils/src/system_dep.h:40
void blocktimer_reportSortByName()
Definition: blocktimer.cpp:132
double blocktimer_time()
Definition: blocktimer.cpp:175
void blocktimer_initialize()
Definition: blocktimer.cpp:45
#define __const
Definition: escriptcore/src/system_dep.h:86
int blocktimer_getOrCreateTimerId(char *name)
Definition: blocktimer.cpp:88