StopWatch: Elapsed (get)

Elapsed

Returns the elapsed time as a TimeSpan object.



 Public Property Get Elapsed ( ) As TimeSpan

Return Values

TimeSpan -  A TimeSpan object.

Remarks

The elapsed time reflects the sum total of all durations timed when calling the StartCount and StopCount. Each time the StopWatch is started, the elapsed time will accumulate, but it will not reset to zero when the StopWatch is stopped. Calling the Reset method will stop the StopWatch and reset the elapsed time to zero.

If the StopWatch is running when the elapsed time is checked, the current accumulated amount of time will be returned. The StopWatch will not be stopped.

Read Only.

See Also

Project CorLib Overview

Class StopWatch Overview