Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

TestContext.BeginTimer Method

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)
public abstract void BeginTimer(
	string timerName
)

Parameters

timerName
Type: 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.