Reset Method
Collapse the table of content
Expand the table of content

Stopwatch.Reset Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Stops time interval measurement and resets the elapsed time to zero.

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

public void Reset()

A Stopwatch instance calculates and retains the cumulative elapsed time across multiple time intervals, until the instance is reset. Use Reset to stop any current interval measurement in progress and clear the elapsed time value. Use Stop() to stop the current interval measurement and retain the cumulative elapsed time value.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft