#ifndef HIRESTIMER_H #define HIRESTIMER_H /////////////////////////////////////////////////////////////////////// /// HiResTimer.h - High Resolution Timer /// /// ver 1.0 Uses Win32 Performance Counters /// /// /// /// Language: Visual C# /// /// Platform: Dell Dimension 9150, Windows XP Pro, SP2 /// /// Application: CSE775 Example /// /// Author: Jim Fawcett, CST 2-187, Syracuse Univ. /// /// (315) 443-3948, jfawcett@twcny.rr.com /// /////////////////////////////////////////////////////////////////////// /// Based on: /// /// Windows Developer Magazine Column: Tech Tips, August 2002 /// /// Author: Shawn Van Ness, shawnv@arithex.com /// /////////////////////////////////////////////////////////////////////// #include namespace HRTimer { class HiResTimer { protected: __int64 a, b, f; public: HiResTimer(); __int64 ElapsedTicks(); __int64 ElapsedMicroseconds(); __int64 Frequency(); void Start(); __int64 Stop(); }; } #endif