Table of Contents

Property Elapsed

Namespace
LMKit.Retrieval.Events
Assembly
LM-Kit.NET.dll

Elapsed

Gets the elapsed time for the retrieval operation.

public TimeSpan Elapsed { get; }

Property Value

TimeSpan

Examples

ragChat.RetrievalCompleted += (sender, e) =>
{
    if (e.Elapsed.TotalSeconds > 2)
    {
        Console.WriteLine($"Slow retrieval detected: {e.Elapsed.TotalMilliseconds:F0} ms");
    }
};
Share