Share via


Timers.Begin Method

Resets all timers, initializes a new list of timing records, and enables timers.

Namespace:  Microsoft.SqlServer.Management.SqlParser.Diagnostics
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Shared Sub Begin ( _
    recordCount As Integer _
)
'Usage
Dim recordCount As Integer

Timers.Begin(recordCount)
public static void Begin(
    int recordCount
)
public:
static void Begin(
    int recordCount
)
static member Begin : 
        recordCount:int -> unit 
public static function Begin(
    recordCount : int
)

Parameters

  • recordCount
    Type: System.Int32
    The maximum number of timing events to record.

Remarks

An overflow error occurs if the maximum number of records is exceeded. Increase the maximum number of records and run again.