C# Класс Nez.Analysis.Stopwatch

Stopwatch is used to measure the general performance of Silverlight functionality. Silverlight does not currently provide a high resolution timer as is available in many operating systems, so the resolution of this timer is limited to milliseconds. This class is best used to measure the relative performance of functions over many iterations.
Показать файл Открыть проект

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

Метод Описание
StartNew ( ) : Stopwatch

Creates a new instance of the class and starts the watch immediately.

reset ( ) : void

Completely resets and deactivates the timer.

start ( ) : void

Begins the timer.

stop ( ) : void

Stops the current timer.

Приватные методы

Метод Описание
getCurrentElapsedTicks ( ) : long
getCurrentTicks ( ) : long

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

StartNew() публичный статический Метод

Creates a new instance of the class and starts the watch immediately.
public static StartNew ( ) : Stopwatch
Результат Stopwatch

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

Completely resets and deactivates the timer.
public reset ( ) : void
Результат void

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

Begins the timer.
public start ( ) : void
Результат void

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

Stops the current timer.
public stop ( ) : void
Результат void