pub fn energy_from_power_time(power: f64, time: f64) -> Option<f64>
Computes electrical energy from power and elapsed time.