Initializes a new instance of the Stopwatch class.
| C# | Visual Basic |
public Stopwatch()
Public Sub New
The returned Stopwatch instance is stopped, and the elapsed time property of the instance is zero.
Use the Start()()()() method to begin measuring elapsed time with the new Stopwatch instance.
Use the StartNew()()()() method to initialize a new Stopwatch instance and immediately start it.