Edit

Share via


AppDomain.MonitoringTotalProcessorTime Property

Definition

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

public:
 property TimeSpan MonitoringTotalProcessorTime { TimeSpan get(); };
public TimeSpan MonitoringTotalProcessorTime { get; }
public TimeSpan MonitoringTotalProcessorTime { [System.Security.SecurityCritical] get; }
member this.MonitoringTotalProcessorTime : TimeSpan
[<get: System.Security.SecurityCritical>]
member this.MonitoringTotalProcessorTime : TimeSpan
Public ReadOnly Property MonitoringTotalProcessorTime As TimeSpan

Property Value

Total processor time for the current application ___domain.

Attributes

Exceptions

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.

Applies to

See also