Export (0) Print
Expand All

AppDomain.MonitoringTotalProcessorTime Property

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)

public TimeSpan MonitoringTotalProcessorTime { get; }

Property Value

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

ExceptionCondition
InvalidOperationException

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

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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

  • SecurityCriticalAttribute 

    Requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Show:
© 2015 Microsoft