In recent years, many time synchronization protocols for wireless sensor networks are presented and reducing the number of synchronous data packets in transmission has become a new research breakthrough. In this paper, the nodes with amount of power held are placed in different areas where the two nodes may exchange the synchronization information. This way does not only efficiently use of energy during the synchronization process, but also reduce the overall timing messages. Based on inherent clock drift and clock offset problem, the Kalman Filter algorithm is used to optimize the clock deviation, which can minimize the mean-square error (MSE). The performance of the proposed time synchronization algorithm is described through the simulation results, there is not present relatively large deviation after optimizing comparing to clsscical TPSN algorithm for synchronization precision.