Changeset - r12228:1660f6f159c9
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-06-25 00:06:06
smatz@openttd.org
(svn r16653) -Fix (r16269): TOC() macro was broken
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/debug.h
Show inline comments
 
@@ -77,7 +77,7 @@ const char *GetDebugString();
 
#define TOC(str, count)\
 
	__sum__ += ottd_rdtsc() - _xxx_;\
 
	if (++__i__ == count) {\
 
		DEBUG(misc, 0, "[%s] %" OTTD_PRINTF64 "u [avg: %.1f]\n", str, __sum__, __sum__/(double)__i__);\
 
		DEBUG(misc, 0, "[%s] " OTTD_PRINTF64 " [avg: %.1f]\n", str, __sum__, __sum__/(double)__i__);\
 
		__i__ = 0;\
 
		__sum__ = 0;\
 
	}\
0 comments (0 inline, 0 general)