How to calculate pump's energy consumption?

Hello everyone,
is there someone who can help me to understand how to calculate the pump’s energy consumption in my network?

Maybe it is a stupid question but I can’t understand how to calculate it; infact “Energy” presents in the structure “getComputedHydraulicTimeSeries” seems to be the instant power and not the energy consumption.

Thank you so much
Ful