StopClock

Object List Hierarchy Next Object

Definition:

The StopClock can be used to measure the amount of time between one line of code and another.

Specialized Features:

The following tables list and describe the properties and methods added by StopClock. There are no added events.


Properties Use to...


AccumulatedTime Tell sum of measured time since Start was invoked.

ElapsedTime Tell span of time elapsed since Start was invoked.

FinishTime Tell time that Finish was invoked.

MarkCount Tell number of Marks.

StartTime Tell time that Start was invoked.

State Tell or control whether the clock is reset, running, stopped, or finished.


Methods Use to...


Finish Stop measuring time.

Mark Keep a labeled mark at a certain time or event.

MarkElapsedTime Find the time span from Start to a particular Mark.

MarkIndex Find the index of a Mark with a particular label text.

MarkText Get the label text of a particular mark.

MarkTimeSpan Find the span of time between two marks.

Pause Stop accumulating time until Start is invoked again.

Reset Set all times back to zero and clear Mark list.

Start Begin or resume measuring time.

Copied Features:

images/Phx00092.gif Properties Methods Events