/[escript]/trunk/escript/src/blocktimer.h
ViewVC logotype

Contents of /trunk/escript/src/blocktimer.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1635 - (show annotations)
Sat Jul 12 10:00:50 2008 UTC (11 years, 1 month ago) by phornby
File MIME type: text/plain
File size: 699 byte(s)
Last commit hung. Trying to recover. Also, remove excessive extern C {} I introduced


1
2 #ifndef blocktimer_h
3 #define blocktimer_h
4
5 #include <stdio.h>
6 #include <search.h>
7 #include "system_dep.h"
8
9 /* If you are going to call stuff in C from C and C++, */
10 /* please take care. */
11
12 /* Enable the block timer (or remove this and use -DBLOCKTIMER) */
13 /* # define BLOCKTIMER */
14
15 # define NUM_TIMERS 1024
16
17 ESCRIPT_DLL_API
18 void blocktimer_initialize();
19 ESCRIPT_DLL_API
20 void blocktimer_increment(__const char *name, double start_time);
21 ESCRIPT_DLL_API
22 int blocktimer_getOrCreateTimerId(__const char *name);
23 ESCRIPT_DLL_API
24 void blocktimer_reportSortByName();
25 ESCRIPT_DLL_API
26 void blocktimer_reportSortByTime();
27 ESCRIPT_DLL_API
28 double blocktimer_time();
29
30
31 #endif

  ViewVC Help
Powered by ViewVC 1.1.26