diff options
Diffstat (limited to 'functions.h')
-rw-r--r-- | functions.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.h b/functions.h index 52abb297b..d5fcd6c50 100644 --- a/functions.h +++ b/functions.h @@ -131,8 +131,8 @@ uint InteractiveRandomRange(uint max); // Used for profiling -#define TIC() { extern uint32 rdtsc(void); uint32 _xxx_ = rdtsc(); static float __avg__; -#define TOC(s) _xxx_ = rdtsc() - _xxx_; __avg__=__avg__*0.99+_xxx_*0.01; printf("%s: %8d %f\n", s, _xxx_,__avg__); } +#define TIC() { extern uint32 _rdtsc(void); uint32 _xxx_ = _rdtsc(); static float __avg__; +#define TOC(s) _xxx_ = _rdtsc() - _xxx_; __avg__=__avg__*0.99+_xxx_*0.01; printf("%s: %8d %f\n", s, _xxx_,__avg__); } void SetDate(uint date); |