TimerResult Class

Records the result of a timer that a test writer may use to execute a part of a test.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.Common.TimerResult

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class TimerResult _
    Implements ICloneable, IXmlTestStore
[SerializableAttribute]
public class TimerResult : ICloneable, 
    IXmlTestStore
[SerializableAttribute]
public ref class TimerResult : ICloneable, 
    IXmlTestStore
[<SerializableAttribute>]
type TimerResult =  
    class 
        interface ICloneable 
        interface IXmlTestStore 
    end
public class TimerResult implements ICloneable, IXmlTestStore

The TimerResult type exposes the following members.

Constructors

  Name Description
Protected method TimerResult() Initializes a new instance of the TimerResult class.
Public method TimerResult(String) Initializes a new instance of the TimerResult class by using the name of the timer result.

Top

Properties

  Name Description
Public property Duration Gets or sets the time interval for the timer.
Public property EndTime Gets the end time by adding the m_duration to the m_startTime.
Public property Name Gets the name of the current timer result object.
Public property StartTime Gets or sets the start time on the timer.

Top

Methods

  Name Description
Public method Clone Returns a clone of the timer result object.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Load Loads an instance of this class from the provided XML element by using the provided parameters.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Save Saves this object in the provided XML element by using the provided parameters.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Protected field m_duration The time interval that is set for this timer result object.
Protected field m_name Name for this timer result object.
Protected field m_startTime Start time that is set for this timer result object.
Protected field m_timeZone

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.Common Namespace