Class SnippetPerformanceCounter
Defines functionality for testing a code snippet's performance.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Utilities.Performance
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class SnippetPerformanceCounter
Constructors
SnippetPerformanceCounter(String, Boolean)
Initializes a new instance of the SnippetPerformanceCounter class.
Declaration
public SnippetPerformanceCounter(string snippetName, bool useLogging = true)
Parameters
System.String
snippetName
Name of the snippet. |
System.Boolean
useLogging
The value indicating whether logging should be used. |
Properties
HitCounter
Gets the hit counter.
Declaration
public int HitCounter { get; }
Property Value
System.Int32
The hit counter. |
TotalMilliseconds
Gets the total milliseconds.
Declaration
public double TotalMilliseconds { get; }
Property Value
System.Double
The total milliseconds. |
Methods
End()
Ends the counter.
Declaration
public void End()
Reset()
Resets the counter.
Declaration
public void Reset()
Start()
Starts the counter.
Declaration
public void Start()
Stop()
Stops the counter.
Declaration
public void Stop()