PerformanceTesting<T>
Provides a simple performance testing class that utilizes .
Type Parameters
-
T
The type that will be used as the indexer.
Constructors
-
Initializes a new instance of the class.
Properties
-
Gets the number of created timers.
-
Gets or sets the convert from string callback function.
-
Gets or sets the convert to string callback function.
-
Gets a singleton instance of the class.
Methods
-
-
Creates a new timer for each key.
-
Returns the total ticks that this timer has observed.
-
Returns the total ticks that this timer has observed.
-
-
Gets the start count for specified timers.
-
Returns the total ticks that this timer has observed.
-
Returns the total ticks that this timer has observed.
-
Calculates the average time in ticks that elapsed while this timer was recording.
-
Calculates the total average time in ticks that elapsed while the specified timers were recording.
-
Calculates the average time in milliseconds that elapsed while this timer was recording.
-
Calculates the total average time in milliseconds that elapsed while the specified timers were recording.
-
Removes the specified timers.
-
-
Resets all the timers that use one of the types as it's key.
-
Resets all the timers that use one of the types as it's key.
-
Provides a generic method for resetting all performance counters via a given type.
-
-
-
Gets an array of timer keys.
-
Sets the enabled state of the timer.
-
Sets the enabled state of the specified timers.
-
Gets the enabled state of the timer.
-
Gets the enabled state of the specified timers.
-
-
-
-
-
-
-
-
-
Resets the timer start count to 0.
-
Resets each timer start count to 0.
-
-
Restarts the specified timers.
Fields
-
Holds a reference to a singleton instance.
-
Used to store various timer information.
-
Provides a lock object when a singleton reference need to be instantiated.