Hint:

Since you have the solution for the velocity as a function of time, you can obtain the pressure gradient from Euler’s equation and integrate.