Bewerken

Share via


Environment.ProcessCpuUsage Struct

Definition

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
Environment.ProcessCpuUsage

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).

Applies to