Table of Contents

Class PerfTimerContext

Namespace
Ranorex.Core.Tracing
Assembly
Ranorex.Core.dll

A nestable timer context where only the outermost context is timed.

public sealed class PerfTimerContext : IDisposable
Inheritance
PerfTimerContext
Implements
Inherited Members

Constructors

PerfTimerContext()

Creates a new PerfTimerContext. Intended to be used with 'using'.

public PerfTimerContext()

Properties

IsActive

Returns true if a context is currently active.

public static bool IsActive { get; }

Property Value

bool

LatestInterval

The current interval measured by this context. Use this with PerfTracing.TraceXXX() call to register timing information.

public static IPerfInterval LatestInterval { get; }

Property Value

IPerfInterval

Methods

Dispose()

Disposes/Closes the current PerfTimerContext. Intended to be used with 'using'.

public void Dispose()