Stopwatch.Restart Method

Definition

Stops time interval measurement, resets the elapsed time to zero, and starts measuring elapsed time.

public:
 void Restart();
public void Restart();
member this.Restart : unit -> unit
Public Sub Restart ()

Remarks

A Stopwatch instance calculates and retains the cumulative elapsed time across multiple time intervals, until the instance is reset or restarted. Use