Stopwatch.StartNew Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Initializes a new Stopwatch instance, sets the elapsed time property to zero, and starts measuring elapsed time.

Namespace:  System.Diagnostics
Assembly:  System (in System.dll)

Syntax

'Declaration
Public Shared Function StartNew As Stopwatch
public static Stopwatch StartNew()

Return Value

Type: System.Diagnostics.Stopwatch
Returns a Stopwatch that has just begun measuring elapsed time..

Version Information

XNA Framework

Supported in: Xbox 360

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.