Interface IStopwatch
A stopwatch that can be used to accurately measure elapsed time.
public interface IStopwatch
Properties
Elapsed
Gets the total elapsed time measured by the current instance.
TimeSpan Elapsed { get; }
Property Value
ElapsedMilliseconds
Gets the total elapsed time measured by the current instance, in milliseconds.
long ElapsedMilliseconds { get; }
Property Value
Methods
Reset()
Stops time interval measurement and resets the elapsed time to zero.
void Reset()
Restart()
Stops time interval measurement, resets the elapsed time to zero, and starts measuring elapsed time.
void Restart()
Start()
Starts, or resumes, measuring elapsed time for an interval.
void Start()
Stop()
Stops measuring elapsed time for an interval.
void Stop()