Click or drag to resize

StopwatchCollection Methods

The StopwatchCollection type exposes the following members.

Methods
  NameDescription
Public methodAddChild
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.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFind
Within this stopwatch collection, find the stopwatch with the provided name.
Public methodGetEnumerator
Returns an enumerator that iterates through all child watches.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPrintTimings
Simple print-out of timings to Console.
Public methodRemoveChild
Removes a child from the list of stopwatches. The child can not be running.
Public methodReset
Stops time measurement of this watch and all children, and resets the elapsed time of this watch (but not its children).
Public methodResetAll
Stops time measurement of this watch and all children, and resets the elapsed time of this watch and all its children.
Public methodRestart
Stops time interval measurement, resets the elapsed time to zero, and starts measuring elapsed time.
(Inherited from Stopwatch.)
Public methodResume
Resumes, measuring elapsed time, does not increment the StartCount. If part of a collection, the parent stopwatch will also be started.
Public methodStart
Starts measuring elapsed time. If part of a collection, the parent stopwatch will also be started.
Public methodStop
Stops measuring elapsed time. If part of a collection, the parent stopwatch will be stopped, if this stopwatch is the one keeping it running.
Public methodStopAll
Stop this stopwatch and all child watches
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also