// hrTimer.h // a High Resolution Timer for C++ code // from: How do I do High Resolution Timing in C++ on Windows? // A Very Accurate Timer // By David Bolton, About.com // revised by tom bailey 16 sep 08 #ifndef hr_timer_h #define hr_timer_h #include class Timer { bool running; LARGE_INTEGER elapsedTime; LARGE_INTEGER startTime; static LARGE_INTEGER frequency; public: Timer() ; void start( ) ; void stop( ) ; double operator()() ; void reset(); long qpart(); }; #endif