10 #ifdef _USE_PROFILING_ 12 #pragma message(">>> Building ARToolKitPlus with PROFILING ENABLED") 78 #ifdef _ARTKP_IS_WINDOWS_ 91 QueryPerformanceCounter(&nM.secBegin);
98 QueryPerformanceCounter(&nM.secEnd);
99 nM.sum.QuadPart += nM.secEnd.QuadPart - nM.secBegin.QuadPart;
106 long double nom = (
long double)nNom.sum.QuadPart,
107 denom = (
long double)nDenom.sum.QuadPart;
109 long double fract = nom/denom;
136 QueryPerformanceFrequency(&freq);
138 long double ld_sum = (
long double)mes->sum.QuadPart,
139 ld_freq = (
long double)freq.QuadPart;
141 long double dt = ld_sum/ld_freq;
146 #else // _ARTKP_IS_WINDOWS_ 183 #endif //_ARTKP_IS_WINDOWS_ 190 FILE* fp = fopen(nFileName,
"w");
194 #ifdef _USE_PROFILING_ 195 # ifdef _ARTKP_IS_WINDOWS_ 201 fprintf(fp,
"PROFILER REPORT (%d runs)\n\n", nNumRuns);
202 fprintf(fp,
" SINGLEMARKER_OVERALL: %.3f msecs\n", 1000.0
f*overall/nNumRuns);
216 # else // _ARTKP_IS_WINDOWS_ 217 fprintf(fp,
"PROFILER REPORT (%d runs)\n\n", nNumRuns);
218 fprintf(fp,
" ERROR: profiling currently only supported under Windows.\n");
219 # endif // _ARTKP_IS_WINDOWS_ 220 #else // _USE_PROFILING_ 221 fprintf(fp,
"PROFILER REPORT (%d runs)\n\n", nNumRuns);
222 fprintf(fp,
" ERROR: profiling was disabled at compiletime.\n");
223 #endif // _USE_PROFILING_ 232 #ifdef _USE_PROFILING_