Struct Measure.CallResult<T>
- Namespace
- LfrlAnvil.Diagnostics
- Assembly
- LfrlAnvil.Core.dll
Represents a lightweight result of an operation along with the measurement of time elapsed during said operation.
public readonly record struct Measure.CallResult<T> : IEquatable<Measure.CallResult<T>>
Type Parameters
TResult's type.
- Implements
- Inherited Members
- Extension Methods
Constructors
CallResult(T, TimeSpan)
Represents a lightweight result of an operation along with the measurement of time elapsed during said operation.
public CallResult(T Result, TimeSpan ElapsedTime)
Parameters
ResultTOperation's result.
ElapsedTimeTimeSpanTime elapsed during an operation.
Properties
ElapsedTime
Time elapsed during an operation.
public TimeSpan ElapsedTime { get; init; }
Property Value
Result
Operation's result.
public T Result { get; init; }
Property Value
- T