Use a modification of the Cristian Algorithm. Start from the faulty clock. Go to the accurate clock, get a time sample T, come back. Set the new time as T + RTT* K/(1 + K), just choose a ratio K which represents the ratio of the time taken between going downhill and uphill
It's a famous distributed systems algorithm for clock synchronization in the presence of an authoritative time source. http://en.wikipedia.org/wiki/Cristian's_algorithm -- DK http://twitter.com/divyekapoor http://www.divye.in -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/d8WCf42To98J. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.