Share via


SPExecutionTimeCounter.ElapsedTime property

Gets the time it took the operation to complete.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property ElapsedTime As TimeSpan
    Get
'Usage
Dim instance As SPExecutionTimeCounter
Dim value As TimeSpan

value = instance.ElapsedTime
public TimeSpan ElapsedTime { get; }

Property value

Type: System.TimeSpan
A TimeSpan object that represents the time it took the operation to complete.

See also

Reference

SPExecutionTimeCounter class

SPExecutionTimeCounter members

Microsoft.SharePoint.Utilities namespace