Interface IStopwatch
- Namespace
- Homa.Sdk.Foundation
- Assembly
- Homa.Sdk.Foundation.dll
Represents a stopwatch, which measures elapsed time in a manner defined by its origin.
public interface IStopwatch
Properties
Elapsed
Time elapsed since started.
TimeSpan Elapsed { get; }
Property Value
IsRunning
Is the stopwatch still counting time.
bool IsRunning { get; }
Property Value
Methods
Reset()
Resets the stopwatch to 0.
void Reset()
Restart()
Stops counting time, resets the elapsed time to zero, and starts a new elapsed time measurement.
void Restart()
Start()
Starts, or resumes, measuring elapsed time.
void Start()
Stop()
Stops counting time by the stopwatch.
void Stop()