00001
00015 #ifndef _REPORT_H
00016 #define _REPORT_H
00017
00018 #include <sys/time.h>
00019
00023 extern long __compTotal;
00024 extern long __compNilTotal;
00025 extern long __swapTotal;
00026
00027 #ifdef COUNT
00028
00030 #define ADD_COMP ++__compTotal
00031 #define ADD_SWAP ++__swapTotal
00032 #define ADD_NIL_COMP ++__compNilTotal
00033
00034 #define SWAP_COUNT __swapTotal
00035 #define NIL_COUNT __compNilTotal
00036 #define COMP_COUNT __compTotal
00037
00038 #endif
00039
00040 extern int verbose;
00041 extern int numElements;
00042
00044 #ifdef __cplusplus
00045 extern "C" long diffTimer (struct timeval *before, struct timeval *after);
00046 extern "C" void printDiffTimer (long usecs);
00047 extern "C" char *timingString (long usecs);
00048 #else
00049 extern long diffTimer (struct timeval *before, struct timeval *after);
00050 extern void printDiffTimer (long usecs);
00051 extern char *timingString (long usecs);
00052 #endif
00053
00054 #endif
Algorithm Development Kit 1.0