Interface IStopwatchSource
- Namespace
- Homa.Sdk.Foundation
- Assembly
- Homa.Sdk.Foundation.dll
Represents a mechanism to start stopwatches which, depending on the implementor, can behave differently in different circumstances.
public interface IStopwatchSource
Methods
Create()
Create a new local stopwatch without starting.
IStopwatch Create()
Returns
Get(string)
Retrieve a named stopwatch if it exists.
IStopwatch Get(string name)
Parameters
namestringName used in Start(string) to start the stopwatch.
Returns
Start(string)
Start a named stopwatch. If one with a given name exists, restarts it.
IStopwatch Start(string name)
Parameters
namestringName to identify the stopwatch
Returns
StartNew()
Start a new local stopwatch.
IStopwatch StartNew()