摘要:
A method of calculating the difference between a device clock and a host clock over a communication network is provided. In a preferred embodiment, the method comprises: a.) sending a sync requests over the communication network; b.) storing in memory a sent host time TH0 when the sync requests was sent; c.) receiving a local time report over a communication network from a local device; d.) storing in memory a device local time X extracted from the local time report; e.) storing in memory a receive host time TH3 when the local time report was received; f.) calculating T such that T=(TH0+TH3)/2; repeating steps a through f a plurality of times; and calculating coefficients Ai and Bi using linear regression after repeating steps a through f at least twice where X=Ai*T+Bi.
摘要翻译:提供了一种通过通信网络计算设备时钟和主机时钟之间的差异的方法。 在优选实施例中,该方法包括:a。)通过通信网络发送同步请求; b)当同步请求被发送时,在存储器中存储发送的主机时间TH0; c)通过通信网络从本地设备接收本地时间报告; d)在存储器中存储从本地时间报告中提取的设备本地时间X; e)当收到本地时间报告时,在存储器中存储接收主机时间TH3; f)计算T使得T =(TH0 + TH3)/ 2; 重复步骤a至f多次; 并且在重复步骤a至f至少两次之后使用线性回归计算系数Ai和Bi,其中X = Ai * T + Bi。