A method of inspecting a flowline, comprising: recording a pressure profile using a sensor connected to a flowline; generating a pressure pulse in the flowline by closing a valve connected to the flowline; characterized by : calculating a first derivative and a second derivative of the pressure profile; and determining one or more parameters of the pressure pulse based on the first derivative and the second derivative of the pressure profile, wherein the one or more parameters comprise any one or combination of a start time of the valve closure, an end time of the valve closure, and a discard time associated with the pressure pulse that represents the time at which the pressure pulse reaches the end of the flowline or at which the pressure pulse has attenuated to a degree that the sensor can no longer adequately record the pressure value over a background level of a signal present within the flowline, the method further comprising identifying a reference time by finding a peak value of the first derivative following a change in pressure that exceeds a threshold value; and: identifying the start time by finding a difference of the first derivative and the second derivative that meets a threshold value occurring before the reference time; identifying the end time by finding a peak of the second derivative occurring after the reference time; and identifying the discard time by finding an additional difference of the first derivative and the second derivative that meets an additional threshold hold value occurring after the reference time. recording a pressure profile using a sensor connected to a flowline; generating a pressure pulse in the flowline by closing a valve connected to the flowline; calculating a first derivative and a second derivative of the pressure profile; and determining one or more parameters of the pressure pulse based on the first derivative and the second derivative of the pressure profile, wherein the one or more parameters comprise any one or combination of a start time of the valve closure, an end time of the valve closure, and a discard time associated with the pressure pulse that represents the time at which the pressure pulse reaches the end of the flowline or at which the pressure pulse has attenuated to a degree that the sensor can no longer adequately record the pressure value over a background level of a signal present within the flowline, the method further comprising identifying a reference time by finding a peak value of the first derivative following a change in pressure that exceeds a threshold value; and: identifying the start time by finding a difference of the first derivative and the second derivative that meets a threshold value occurring before the reference time; identifying the end time by finding a peak of the second derivative occurring after the reference time; and identifying the discard time by finding an additional difference of the first derivative and the second derivative that meets an additional threshold hold value occurring after the reference time. identifying the start time by finding a difference of the first derivative and the second derivative that meets a threshold value occurring before the reference time; identifying the end time by finding a peak of the second derivative occurring after the reference time; and identifying the discard time by finding an additional difference of the first derivative and the second derivative that meets an additional threshold hold value occurring after the reference time. <EOS>