Measurement of work and power of electric current