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 Snippet
Declaration
public SnippetPerformanceCounter(string snippetName, bool useLogging = true)
Parameters
System. Name of the snippet. |
System. The value indicating whether logging should be used. |
Properties
HitCounter
Gets the hit counter.
Declaration
public int HitCounter { get; }
Property Value
System. The hit counter. |
TotalMilliseconds
Gets the total milliseconds.
Declaration
public double TotalMilliseconds { get; }
Property Value
System. 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()