Table of Contents

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

T

Result'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

Result T

Operation's result.

ElapsedTime TimeSpan

Time elapsed during an operation.

Properties

ElapsedTime

Time elapsed during an operation.

public TimeSpan ElapsedTime { get; init; }

Property Value

TimeSpan

Result

Operation's result.

public T Result { get; init; }

Property Value

T