diff --git a/polymer/eduke32/build/include/common.h b/polymer/eduke32/build/include/common.h index 76757a900..594fd593b 100644 --- a/polymer/eduke32/build/include/common.h +++ b/polymer/eduke32/build/include/common.h @@ -62,4 +62,9 @@ void G_DoAutoload(const char *dirname); char *dup_filename(const char *fn); +// timer defs for profiling function chunks the simple way +#define EDUKE32_TMRDEF int32_t t[20], ti=0; const char *tmrstr=__func__; fprintf(stderr,"%s\n",tmrstr); t[ti++]=getticks(); +#define EDUKE32_TMRTIC t[ti++]=getticks() +#define EDUKE32_TMRPRN do { int ii=0; fprintf(stderr,"%s: ",tmrstr); for (ii=1; ii