StopwatchCollection Methods |
The StopwatchCollection type exposes the following members.
Name | Description | |
---|---|---|
AddChild |
Add a child to the list of stopwatches. A watch can only be added once to the list.
A watch can only be a child of one other collection. The child can not be running.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Find |
Within this stopwatch collection, find the stopwatch with the provided name.
| |
GetEnumerator |
Returns an enumerator that iterates through all child watches.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PrintTimings |
Simple print-out of timings to Console.
| |
RemoveChild |
Removes a child from the list of stopwatches. The child can not be running.
| |
Reset |
Stops time measurement of this watch and all children, and resets the elapsed time
of this watch (but not its children).
| |
ResetAll |
Stops time measurement of this watch and all children, and resets the elapsed time
of this watch and all its children.
| |
Restart | Stops time interval measurement, resets the elapsed time to zero, and starts measuring elapsed time. (Inherited from Stopwatch.) | |
Resume |
Resumes, measuring elapsed time, does not increment the StartCount.
If part of a collection, the parent stopwatch will also be started.
| |
Start |
Starts measuring elapsed time.
If part of a collection, the parent stopwatch will also be started.
| |
Stop |
Stops measuring elapsed time.
If part of a collection, the parent stopwatch will be stopped, if
this stopwatch is the one keeping it running.
| |
StopAll |
Stop this stopwatch and all child watches
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |