System.Diagnostics.TStopwatch.Elapsed

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Elapsed: TTimeSpan read GetElapsed;

C++

__property System::Timespan::TTimeSpan Elapsed = {read=GetElapsed};

Properties

Type Visibility Source Unit Parent
property public
System.Diagnostics.pas
System.Diagnostics.hpp
System.Diagnostics TStopwatch

Description

Specifies the elapsed time.

Use Elapsed to obtain the total amount of time elapsed counted by the stopwatch. Elapsed returns a TTimeSpan value that can be used to obtain the time span in any desired form.

The value of Elapsed is only updated if the stopwatch is priorly stopped. Reading the Elapsed property while the stopwatch is running does not yield any difference.

See Also