Class PerfTimerContext
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
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
Methods
Dispose()
Disposes/Closes the current PerfTimerContext. Intended to be used with 'using'.
public void Dispose()