This paper proposes a route algorithm that uses the time cost from the source node to the sink node as the key factor to construct the optimal route in the network with a topology of cluster tree. The sequence diagram of the algorithm has been showed to illustrate the process of the protocol in the paper. Also, the protocol has been coded through nesC on the TinyOS2.x platform. The simulation results demonstrate that the new protocol has some improvement on transmitting delay of data packets compared to the traditional one of the TinyOS.