摘要 |
<p>Various embodiments are provided that relate to clock synchronization. In one embodiment, a method for synchronizing a relative clock to a global clock comprises receiving a network packet from a master computing device, the network packet including a network packet time stamp indicating a system time of the global clock when the network packet was transmitted; determining a receipt time offset between a receipt time of the network packet and the network packet time stamp, the receipt time indicating a time at which the network packet is received as measured by the relative clock; and adjusting a system time of the relative clock toward the system time of the global clock by updating a system time offset to the receipt time offset if the receipt time offset is smaller than the system time offset.</p> |