public static Energy operator *(TimeSpan time, Power power) { return(Energy.FromJoules(power.Watts * time.TotalSeconds)); }
public static Energy operator *(Duration duration, Power power) { return(Energy.FromJoules(power.Watts * duration.Seconds)); }
/// <summary>Get <see cref="Energy"/> from <see cref="Power"/> times <see cref="TimeSpan"/>.</summary> public static Energy operator *(Power power, TimeSpan time) { return(Energy.FromJoules(power.Watts * (decimal)time.TotalSeconds)); }