C# Class 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.
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
getCurrentElapsedTicks ( ) : long
getCurrentTicks ( ) : long

Method Details

StartNew() public static méthode

Creates a new instance of the class and starts the watch immediately.
public static StartNew ( ) : Stopwatch
Résultat Stopwatch

reset() public méthode

Completely resets and deactivates the timer.
public reset ( ) : void
Résultat void

start() public méthode

Begins the timer.
public start ( ) : void
Résultat void

stop() public méthode

Stops the current timer.
public stop ( ) : void
Résultat void