namespace SpdUp.Models; /// /// Snapshot of current system performance metrics. /// public sealed class SystemMetrics { public float CpuUsage { get; init; } public float RamUsageMB { get; init; } public float RamTotalMB { get; init; } public float RamUsagePercent => RamTotalMB > 0 ? (RamUsageMB / RamTotalMB) * 100f : 0f; public float GpuUsage { get; init; } public float CpuTemperature { get; init; } public float GpuTemperature { get; init; } public float NetworkPingMs { get; init; } public float Fps { get; init; } public DateTime Timestamp { get; init; } = DateTime.Now; }