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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1431 - (show annotations)
Wed Feb 27 09:52:25 2008 UTC (11 years, 5 months ago) by trankine
File MIME type: text/plain
File size: 514 byte(s)
This trunk now compiles and links under windows.
It passes the FunctionSpace.__str__() test 50000 times on windows.
It fails scons run_tests and scons_py_tests as it always did, but I have an idea why.

Please remember to add the appropriate dll linkage info to declarations that are to be visible outside a .so or .dll. Terry (BTW, PGH here) spent a lot of hacks clearing out blocktimer from the rest of the code when these 5 or 6 lines would have done the trick.
1 #include <stdio.h>
2 #include <search.h>
3 #include "system_dep.h"
4
5 /* Enable the block timer (or remove this and use -DBLOCKTIMER) */
6 /* # define BLOCKTIMER */
7
8 # define NUM_TIMERS 1024
9
10 ESCRIPT_DLL_API
11 void blocktimer_initialize();
12 ESCRIPT_DLL_API
13 void blocktimer_increment(char *name, double start_time);
14 ESCRIPT_DLL_API
15 int blocktimer_getOrCreateTimerId(char *name);
16 ESCRIPT_DLL_API
17 void blocktimer_reportSortByName();
18 ESCRIPT_DLL_API
19 void blocktimer_reportSortByTime();
20 ESCRIPT_DLL_API
21 double blocktimer_time();
22

  ViewVC Help
Powered by ViewVC 1.1.26