Environment.ProcessCpuUsage.TotalTime Property

Definition

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.

C#
public TimeSpan TotalTime { get; }

Property Value

Applies to

Product Versions
.NET 9, 10