Class StopwatchFactory
Exposes commonly used stopwatch factories and methods to create stopwatch factories.
Inheritance
System.Object
StopwatchFactory
Namespace: System.Time
Assembly: Nuqleon.Time.dll
Syntax
public static class StopwatchFactory : Object
Properties
Diagnostics
Gets a factory for stopwatches that use the System.Diagnostics.Stopwatch type.
Declaration
public static IStopwatchFactory Diagnostics { get; }
Property Value
Type | Description |
---|---|
IStopwatchFactory |
Methods
FromClock(IClock)
Creates a stopwatch factory that uses the specified clock to measure time.
Declaration
public static IStopwatchFactory FromClock(IClock clock)
Parameters
Type | Name | Description |
---|---|---|
IClock | clock | Clock used to measure time. |
Returns
Type | Description |
---|---|
IStopwatchFactory | Stopwatch factory to create stopwatches based on the specified clock. |