Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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);
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 .NET Framework System Requirements.
Header: MetaHost.h
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: 4
See Also
Reference
ICLRAppDomainResourceMonitor Interface
Concepts
Application Domain Resource Monitoring