PrecisionTimer |
The PrecisionTimer wraps the Kernel32 calls to QueryPerformanceFrequency and QueryPerformanceCounter. By doing so, this class provides easy access to this high precision timing mechanism if it is available in the system. A class such as System.StopWatch can be built using this Precision timer class as well as other timing mechanisms when precision timing is not available. When you know your application is running on a system that supports precision timing, you can simply use this class. |