added power measurement code