I'm trying to figure out how to calculate energy consumed through my circuit. I can read the current and see the voltage, can obviously calculate the instant power, but I'm fairly certain that I don't just sum them up over intervals (I sample at 10 Hz) to get watt-seconds. I have a processor to do the work for me, and an ADC reading the current from an amplifier and reading the system voltage. What's the best method of calculating the energy I consume through the circuit for the duration that the power is on? It's been a while since college...