summaryrefslogtreecommitdiff
path: root/src/debug.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-11-26 01:03:34 +0000
committerrubidium <rubidium@openttd.org>2008-11-26 01:03:34 +0000
commit69eb6978e76dd97df4dc3f9b937012c91553303b (patch)
treec7bb2ccf1b951ef42bb8daacbd94423ff6b74c4f /src/debug.h
parent131f9e39d3ade7052c23bda339a66d32b354b9c8 (diff)
downloadopenttd-69eb6978e76dd97df4dc3f9b937012c91553303b.tar.xz
(svn r14634) -Change: _rdtsc is defined by some platforms so we can't use that name.
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/debug.h b/src/debug.h
index 7648732a3..8ab897b2e 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -84,13 +84,13 @@ const char *GetDebugString();
* it with an other block.
**/
#define TIC() {\
- extern uint64 _rdtsc();\
- uint64 _xxx_ = _rdtsc();\
+ extern uint64 ottd_rdtsc();\
+ uint64 _xxx_ = ottd_rdtsc();\
static uint64 __sum__ = 0;\
static uint32 __i__ = 0;
#define TOC(str, count)\
- __sum__ += _rdtsc() - _xxx_;\
+ __sum__ += ottd_rdtsc() - _xxx_;\
if (++__i__ == count) {\
DEBUG(misc, 0, "[%s] %" OTTD_PRINTF64 "u [avg: %.1f]\n", str, __sum__, __sum__/(double)__i__);\
__i__ = 0;\