Use timer B and PLL

Timer B used to track timestamp
PLL used to calculate wattage