Class ExecutionStopwatch
Stopwatch to measure CPU time. Works only on Windows.
Implements
Inherited Members
Namespace: SuperOffice.Diagnostics
Assembly: SoCore.dll
Syntax
public class ExecutionStopwatch : IExecutionStopwatch
Constructors
ExecutionStopwatch()
Stopwatch to measure CPU time. Works only on Windows.
Declaration
public ExecutionStopwatch()
Properties
Elapsed
Stopwatch to measure CPU time. Works only on Windows.
Declaration
public TimeSpan Elapsed { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
IsRunning
Stopwatch to measure CPU time. Works only on Windows.
Declaration
public bool IsRunning { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
Reset()
Stopwatch to measure CPU time. Works only on Windows.
Declaration
public void Reset()
Start()
Stopwatch to measure CPU time. Works only on Windows.
Declaration
public void Start()
StartNew()
Stopwatch to measure CPU time. Works only on Windows.
Declaration
public static ExecutionStopwatch StartNew()
Returns
Type | Description |
---|---|
ExecutionStopwatch |
Stop()
Stopwatch to measure CPU time. Works only on Windows.
Declaration
public void Stop()