DPB1Class · Utilities and settings

PerformanceTimer

Provides performance timer data and the operations listed below. Related types link to the values this API consumes or returns.

Namespace: DreamPoeBot.Loki.Common

public class PerformanceTimer
Reference: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

7 declared here

PerformanceTimer

MethodLink ↗
public PerformanceTimer.PerformanceTimer(string debugText, int triggerMs = 0, FinishedMeasuringCallback callback = null, bool? dontPrint = null)

Creates a new PerformanceTimer instance using the supplied arguments.

Parameters

debugText
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies debug text.

triggerMs
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies trigger ms. Optional; the default is shown in the signature.

callback
Parameter type: FinishedMeasuringCallback

Specifies callback. Optional; the default is shown in the signature.

dontPrint
Parameter type: bool?No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies dont print. Optional; the default is shown in the signature.

Dispose

MethodLink ↗
public void PerformanceTimer.Dispose()

Releases resources owned by this instance.

Return type: voidNo return value.

Start

MethodLink ↗
public void PerformanceTimer.Start()

Starts this component's lifecycle.

Return type: voidNo return value.

StopAndPrint

MethodLink ↗
public void PerformanceTimer.StopAndPrint()

Stops and print.

Return type: voidNo return value.

DontPrint

PropertyLink ↗
public static bool PerformanceTimer.DontPrint { get; set; }

Reads or assigns dont print on PerformanceTimer as bool. The exact type and accessors are shown below.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Elapsed

PropertyLink ↗
public TimeSpan PerformanceTimer.Elapsed { get; }

Reads elapsed on PerformanceTimer as TimeSpan. The exact type and accessors are shown below.

Value type: TimeSpanNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

ElapsedMilliseconds

PropertyLink ↗
public long PerformanceTimer.ElapsedMilliseconds { get; }

Reads elapsed milliseconds on PerformanceTimer as long. The exact type and accessors are shown below.

Value type: longNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

DPB1 0.3.29.56 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.