Text this: A Method for Estimating X-Ray Pulsar Period and Pulse Time Delay: Applying the Improved -test to Complex Profiles