Прочетете на английски Редактиране

Споделяне чрез


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 TimeSpan MonitoringTotalProcessorTime { get; }
public TimeSpan MonitoringTotalProcessorTime { [System.Security.SecurityCritical] get; }

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

Продукт Версии
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also