C# Класс NewTOAPIA.Kernel.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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetElapsedSeconds ( ) : double

Return the number of seconds that elapsed since Reset() was called.

PrecisionTimer ( ) : System
Reset ( ) : void

Reset the startCount, which is the current tick count. This will reset the elapsed time because elapsed time is the difference between the current tick count, and the one that was set here in the Reset() call.

Описание методов

GetElapsedSeconds() публичный Метод

Return the number of seconds that elapsed since Reset() was called.
public GetElapsedSeconds ( ) : double
Результат double

PrecisionTimer() публичный Метод

public PrecisionTimer ( ) : System
Результат System

Reset() публичный Метод

Reset the startCount, which is the current tick count. This will reset the elapsed time because elapsed time is the difference between the current tick count, and the one that was set here in the Reset() call.
public Reset ( ) : void
Результат void