2017-10-14 00:06:58 +02:00
|
|
|
|
namespace ElectronNET.API.Entities
|
|
|
|
|
|
{
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// <remarks>Up-to-date with Electron API 39.2</remarks>
|
2017-10-14 00:06:58 +02:00
|
|
|
|
public class CPUUsage
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2020-05-31 03:09:54 +02:00
|
|
|
|
/// Percentage of CPU used since the last call to getCPUUsage. First call returns 0.
|
2017-10-14 00:06:58 +02:00
|
|
|
|
/// </summary>
|
2025-11-09 12:05:07 +01:00
|
|
|
|
public double PercentCPUUsage { get; set; }
|
2017-10-14 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Total seconds of CPU time used since process startup, if available.
|
2017-10-14 00:06:58 +02:00
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
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; }
|
2017-10-14 00:06:58 +02:00
|
|
|
|
}
|
2025-11-15 08:05:31 +01:00
|
|
|
|
}
|