Real time power measurement