\frac{dE}{dt}=\frac{dE}{dT}\frac{dT}{dt}=C\frac{dT}{dt}=mc\frac{dT}{dt}