Environment.ProcessCpuUsage Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the CPU usage statistics of a process.
public: value class Environment::ProcessCpuUsage
public readonly struct Environment.ProcessCpuUsage
type Environment.ProcessCpuUsage = struct
Public Structure Environment.ProcessCpuUsage
- Inheritance
Remarks
The CPU usage statistics include information about the time spent by the process in the application code (user mode) and the operating system code (kernel mode), as well as the total time spent by the process in both user mode and kernel mode.
Properties
PrivilegedTime |
Gets the amount of time the process has spent running code inside the operating system code. |
TotalTime |
Gets the amount of time the process has spent utilizing the CPU, including the process time spent in the application code and in the operating system code. |
UserTime |
Gets the amount of time the associated process has spent running code inside the application portion of the process (not the operating system code). |