Modeling and tracking time-varying clock drifts in wireless networks