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.
Show file Open project: prime31/Nez

Public Methods

Method 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

Method Description
getCurrentElapsedTicks ( ) : long
getCurrentTicks ( ) : long

Method Details

StartNew() public static method

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

reset() public method

Completely resets and deactivates the timer.
public reset ( ) : void
return void

start() public method

Begins the timer.
public start ( ) : void
return void

stop() public method

Stops the current timer.
public stop ( ) : void
return void