.NET Framework Class Library
AppDomain..::.MonitoringTotalProcessorTime Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the total processor time that has been used by all threads while executing in the current application domain, since the process started.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)
Syntax

Visual Basic (Declaration)
Public ReadOnly Property MonitoringTotalProcessorTime As TimeSpan
    Get
Visual Basic (Usage)
Dim instance As AppDomain
Dim value As TimeSpan

value = instance.MonitoringTotalProcessorTime
C#
public TimeSpan MonitoringTotalProcessorTime { get; }
Visual C++
public:
property TimeSpan MonitoringTotalProcessorTime {
    TimeSpan get ();
}
F#
member MonitoringTotalProcessorTime : TimeSpan

Property Value

Type: System..::.TimeSpan
Total processor time for the current application domain.
Exceptions

ExceptionCondition
InvalidOperationException

The static (Shared in Visual Basic) MonitoringIsEnabled property is set to false.

Remarks

The total time that is reported for an application domain includes the time each thread in the process spent executing in that application domain.

A thread that calls into unmanaged code is still associated with an application domain, and the processor time spent executing the unmanaged code is reported for the application domain where the call was made.

When a thread is blocked or sleeping, it does not consume processor time.

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4
See Also

Reference

Page view tracker