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.

TestContext::BeginTimer Method (String^)


When overridden in a derived class, begins a timer with the specified name.

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

virtual void BeginTimer(
	String^ timerName
) abstract


Type: System::String^

The name of the timer to begin.

A timer can be useful when a unit test is run in the context of a load test. In this case, the time between the calls to BeginTimer and EndTimer for a given timerName are reported as transaction times in the load test results.

Return to top