Table of Contents

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

IStopwatch

Get(string)

Retrieve a named stopwatch if it exists.

IStopwatch Get(string name)

Parameters

name string

Name used in Start(string) to start the stopwatch.

Returns

IStopwatch

Start(string)

Start a named stopwatch. If one with a given name exists, restarts it.

IStopwatch Start(string name)

Parameters

name string

Name to identify the stopwatch

Returns

IStopwatch

StartNew()

Start a new local stopwatch.

IStopwatch StartNew()

Returns

IStopwatch