The code LALInspiralPhasing2.c calculates the phase of an inspiral waveform as a function of the instantaneous frequency of the wave, up to post-Newtonian order.