Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TimerResult::Duration Property

 

Gets or sets the time interval for the timer.

Namespace:   Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

public:
property TimeSpan Duration {
	TimeSpan get();
	void set(TimeSpan value);
}

Property Value

Type: System::TimeSpan

The time interval.

Use Zero when the elapsed time is less than zero to prevent the report of a negative duration.

Return to top
Show: