X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fpcnt.h;h=d3eedfa5f39e83c569320e7d4172190f5a962b2f;hp=57bc88adff36851d82ef8f271bb49195fad6f6fe;hb=fa9cfe0a7ff390f15bfdc6add7e57841173d1954;hpb=ae602c19f527fbc1f44cdb744cf824d04b8eceb1 diff --git a/frontend/pcnt.h b/frontend/pcnt.h index 57bc88ad..d3eedfa5 100644 --- a/frontend/pcnt.h +++ b/frontend/pcnt.h @@ -6,6 +6,8 @@ enum pcounters { PCNT_CNT }; +#ifdef PCNT + extern unsigned int pcounters[PCNT_CNT]; extern unsigned int pcounter_starts[PCNT_CNT]; @@ -50,3 +52,15 @@ static inline unsigned int pcnt_get(void) return val; } +#else + +#define pcnt_start(id) +#define pcnt_end(id) +#define pcnt_hook_plugins() + +static inline void pcnt_print(float fps) +{ + printf("%2.1f\n", fps); +} + +#endif