Example:
auto efficiency = performancePerWatt();
writeln("Efficiency: ", efficiency, " units per watt");double performancePerWatt()Calculates performance-per-watt metric.
This function provides an efficiency metric indicating how much performance (work) is achieved per unit of power consumption. Higher values indicate better energy efficiency.
Example:
auto efficiency = performancePerWatt();
writeln("Efficiency: ", efficiency, " units per watt");