Share via


DatabaseLogFormatter.Stopwatch Property

Definition

Caution

This stopwatch can give incorrect times. Use 'GetStopwatch' instead.

This property is obsolete. Using it can result in logging incorrect execution times. Call GetStopwatch(DbCommandInterceptionContext) instead.

[System.Obsolete("This stopwatch can give incorrect times. Use 'GetStopwatch' instead.")]
protected internal System.Diagnostics.Stopwatch Stopwatch { get; }
member this.Stopwatch : System.Diagnostics.Stopwatch
Protected Friend ReadOnly Property Stopwatch As Stopwatch

Property Value

Attributes

Applies to