An algorithm for WSN clock synchronization: Uncertainty and convergence rate trade off