Skip to main content

Class TimingHandle

Class used for tracking a time interval taken.

Assembly: Dalamud.dll
View Source
Declaration
public sealed class TimingHandle : TimingEvent, IDisposable, IComparable<TimingHandle>

Inheritance: System.Object -> Dalamud.Utility.Timing.TimingEvent

Implements:
System.IDisposable, System.IComparable<Dalamud.Utility.Timing.TimingHandle>

Properties

IdChain

Gets the id chain.

View Source
Declaration
public long[] IdChain { get; init; }

EndTime

Gets the time this timing ended.

View Source
Declaration
public double EndTime { get; }

Duration

Gets the duration of this timing.

View Source
Declaration
public double Duration { get; }

Stack

Gets the attached timing handle stack.

View Source
Declaration
public List<TimingHandle> Stack { get; }

Parent

Gets the parent timing.

View Source
Declaration
public TimingHandle? Parent { get; }

IsMainThread

Gets a value indicating whether or not this timing was started on the main thread.

View Source
Declaration
public bool IsMainThread { get; }

ChildCount

Gets the number of child timings.

View Source
Declaration
public uint ChildCount { get; }

Methods

Dispose()

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

View Source
Declaration
public void Dispose()

CompareTo(TimingHandle?)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

View Source
Declaration
public int CompareTo(TimingHandle? other)
Returns

System.Int32: A value that indicates the relative order of the objects being compared. The return value has these meanings:

<table><thead><tr><th class="term"> Value</th><th class="description"> Meaning</th></tr></thead><tbody><tr><td class="term"> Less than zero</td><td class="description"> This instance precedes <code class="paramref">other</code> in the sort order.</td></tr><tr><td class="term"> Zero</td><td class="description"> This instance occurs in the same position in the sort order as <code class="paramref">other</code>.</td></tr><tr><td class="term"> Greater than zero</td><td class="description"> This instance follows <code class="paramref">other</code> in the sort order.</td></tr></tbody></table>

Parameters
TypeNameDescription
Dalamud.Utility.Timing.TimingHandleotherAn object to compare with this instance.

Implements

  • System.IDisposable
  • System.IComparable<Dalamud.Utility.Timing.TimingHandle>