Table of Contents

Class ProfilerSessionTimer

Namespace
AiDotNet.Diagnostics
Assembly
AiDotNet.dll

A manual profiler timer that must be explicitly stopped.

public class ProfilerSessionTimer : IDisposable
Inheritance
ProfilerSessionTimer
Implements
Inherited Members

Properties

Elapsed

Gets the elapsed time so far.

public TimeSpan Elapsed { get; }

Property Value

TimeSpan

Name

Gets the name of this profiler timer.

public string Name { get; }

Property Value

string

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Stop()

Stops the timer and records the duration.

public void Stop()