This documentation is archived and is not being maintained.

ICLRAppDomainResourceMonitor::GetCurrentCpuTime Method

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

HRESULT GetCurrentCpuTime([in]  DWORD dwAppDomainId,
                          [out] ULONGLONG* pMilliseconds);

dwAppDomainId

[in] The ID of the requested application domain.

pMilliseconds

[out] A pointer to the total processor time that has been used by all threads while executing in the current application domain since the application domain was created. This parameter can be null.

HRESULT

Description

S_OK

The method completed successfully.

COR_E_APPDOMAINUNLOADED

The application domain has been unloaded or does not exist.

E_FAIL

Application domain resource monitoring is not enabled.

-or-

All other failures.

This method is the unmanaged equivalent of the managed AppDomain.MonitoringTotalProcessorTime property.

Platforms: See .NET Framework System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4

Show: