Pulsed power calculation
If I multiply voltage,current and timestamp at each timestamp (E=vit) and sum them together over a period of 1 ms, ...


You should be using \$ E = \Sigma vi \Delta t \$ where \$ \Delta t \$ is the sample period in seconds, not the timestamp which will increase with each sample.