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.

Syntax

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

Parameters

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.

Return Value

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.

Remarks

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

Requirements

Platforms: See System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: Available since 4

See also