#ifndef __TIMERFUNCS_H__ #define __TIMERFUNCS_H__ #pragma error "replace with util/HiresTimer.h" #if 0 #ifdef _WIN32 typedef uint32_t mtimer_t; inline mtimer_t GetMsecTimer() { return GetTickCount(); } inline void MSleep(mtimer_t t) { Sleep(t); } #else typedef uint32_t mtimer_t; inline mtimer_t GetMsecTimer() { return clock()*(1000/CLOCKS_PER_SEC); } inline void MSleep(mtimer_t t) { usleep(t*1000); } #endif #endif #endif