StopwatchCollection Class |
Namespace: DHI.Mike1D.Generic
The StopwatchCollection type exposes the following members.
Name | Description | |
---|---|---|
StopwatchCollection |
Create a new stopwatch collection with a given name.
|
Name | Description | |
---|---|---|
ChildWatches |
List of all child-stopwatches. All children must have _parent=this
| |
Elapsed | Gets the total elapsed time measured by the current instance. (Inherited from Stopwatch.) | |
ElapsedMilliseconds | Gets the total elapsed time measured by the current instance, in milliseconds. (Inherited from Stopwatch.) | |
ElapsedTicks | Gets the total elapsed time measured by the current instance, in timer ticks. (Inherited from Stopwatch.) | |
IsRunning | Gets a value indicating whether the Stopwatch timer is running. (Inherited from Stopwatch.) | |
Name |
Name of stopwatch.
| |
Parent |
Parent stopwatch, when this stopwatch is part of another collection.
| |
StartCount |
Counting the number of times Start was called
|
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.) |