-
-
Notifications
You must be signed in to change notification settings - Fork 745
Expand file tree
/
Copy pathCPUUsage.cs
More file actions
25 lines (23 loc) · 826 Bytes
/
CPUUsage.cs
File metadata and controls
25 lines (23 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
namespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class CPUUsage
{
/// <summary>
/// Percentage of CPU used since the last call to getCPUUsage. First call returns 0.
/// </summary>
public double PercentCPUUsage { get; set; }
/// <summary>
/// Total seconds of CPU time used since process startup, if available.
/// </summary>
public double? CumulativeCPUUsage { get; set; }
/// <summary>
/// The number of average idle CPU wakeups per second since the last call to
/// getCPUUsage. First call returns 0. Will always return 0 on Windows.
/// </summary>
public double IdleWakeupsPerSecond { get; set; }
}
}