The two-dimensional classification of Q data fusion can not solve the problem of the time synchronization. Advances the algorithm of time-alignment based on the least square method of curvilinear fitting. And introduces two fundamental principles for the algorithm: the least squares fitting principle and the time alignment principle. The simulation analyses the data fusion of two sensors which have different sampling period. The result shows that the algorithm calculates faster and has better fusion efficiency