Class ResourceTracerContext
Inheritance
ResourceTracerContext
Assembly: SoCore.dll
Syntax
public class ResourceTracerContext : ISoTimeRecorderContext, IDisposable
Fields
CpuTimer
Declaration
public IExecutionStopwatch CpuTimer
Field Value
Timer
Declaration
Field Value
Properties
Category
Declaration
public string Category { get; }
Property Value
IsRunning
Declaration
public bool IsRunning { get; }
Property Value
Parent
Declaration
public ResourceTracer Parent { get; }
Property Value
RecorderType
Declaration
public SoTimerType RecorderType { get; }
Property Value
Methods
Dispose()
Declaration
End()
Stop the timer and obtain the time since the start of the timing.
Declaration
Increment()
Increment the build in counter
Declaration
Lap(Func<string>)
Perform a lap operation and see the time since the previous lap.
Declaration
public void Lap(Func<string> description)
Parameters
| Type |
Name |
Description |
| Func<string> |
description |
Information about the lap.
|
Split(Func<string>)
Perform a split operation to see how long time was spent since the the timer was started.
Declaration
public void Split(Func<string> description)
Parameters
| Type |
Name |
Description |
| Func<string> |
description |
Information about the split time.
|
Implements
Extension Methods