Method and associated time manager for managing time relation between system times of different remote systems
First Claim
1. A method for managing a time relation between system times of different remote systems by a terminal, comprising:
- periodically updating a count of a reference counter according to a local clock of the terminal;
synchronizing with a first remote system of the different remote systems;
at a first moment after synchronized with the first remote system, obtaining a first value of a first system time via synchronization with the first remote system, and accessing the reference counter to obtain a first count;
synchronizing with a second remote system of the different remote systems; and
at a second moment after synchronized with the second remote system, updating the time relation by;
obtaining a second value of the second system time via synchronization with the second remote system,accessing the reference counter to obtain a second count,calculating an extrapolation interval according to a difference between the first count and the second count,calculating a second value of the first system time by summing the first value of the first system time and the extrapolation interval,calculating a first time difference according to a difference between two previous values of the first system time obtained via synchronization with the first remote system respectively at two different previous moments which are not later than the second moment,calculating a second time difference according to a difference between two prior values of the second system time obtained via synchronization with the second remote system respectively at two different prior moments which are not later than the second moment,calculating a clock drift according to a ratio of the first time difference and the second time difference, andstoring the second value of the first system time and the second value of the second system time and the clock drift as updated content of the time relation.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention provides a method and an associated time manager for managing a time relation between system times of different remote systems, including: at a first moment, obtaining a first value of a first system time and accessing a periodically updating reference counter to obtain a first count; at a second moment, updating the time relation by: obtaining a second value of a second system time along with a second count, and calculating a second value of the first system time by summing the first value of the first system time and an extrapolation interval calculated according to a difference between the first count and the second count. Thus, when synchronization with a first remote system ends, a fourth value of the first system time may be calculated according to a fourth value of the second system time and a previously stored time relation.
-
Citations
18 Claims
-
1. A method for managing a time relation between system times of different remote systems by a terminal, comprising:
-
periodically updating a count of a reference counter according to a local clock of the terminal; synchronizing with a first remote system of the different remote systems; at a first moment after synchronized with the first remote system, obtaining a first value of a first system time via synchronization with the first remote system, and accessing the reference counter to obtain a first count; synchronizing with a second remote system of the different remote systems; and at a second moment after synchronized with the second remote system, updating the time relation by; obtaining a second value of the second system time via synchronization with the second remote system, accessing the reference counter to obtain a second count, calculating an extrapolation interval according to a difference between the first count and the second count, calculating a second value of the first system time by summing the first value of the first system time and the extrapolation interval, calculating a first time difference according to a difference between two previous values of the first system time obtained via synchronization with the first remote system respectively at two different previous moments which are not later than the second moment, calculating a second time difference according to a difference between two prior values of the second system time obtained via synchronization with the second remote system respectively at two different prior moments which are not later than the second moment, calculating a clock drift according to a ratio of the first time difference and the second time difference, and storing the second value of the first system time and the second value of the second system time and the clock drift as updated content of the time relation. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A time manager in a terminal for managing a time relation between system times of different remote systems, comprising:
-
a reference counter periodically updating a count according to a local clock of the terminal, a memory, and a processor coupled to the reference counter and the memory; wherein the terminal comprises; a first interface circuit for synchronizing with a first remote system of the different remote systems, and, at a first moment after synchronized with the first remote system, obtaining a first value of a first system time via synchronization with the first remote system, and accessing the reference counter to obtain a first count; and a second interface circuit for synchronizing with a second remote system of the different remote systems, and, at a second moment after synchronized with the second remote system, obtaining a second value of the second system time via synchronization with the second remote system, and accessing the reference counter to obtain a second count, wherein at the second moment, the processor updates the time relation by; calculating an extrapolation interval according to a difference between the first count and the second count, calculating a second value of the first system time by summing the first value of the first system time and the extrapolation interval, calculating a first time difference according to a difference between two previous values of the first system time obtained via synchronization with the first remote system respectively at two different previous moments which are not later than the second moment, calculating a second time difference according to a difference between two prior values of the second system time obtained via synchronization with the second remote system respectively at two different prior moments which are not later than the second moment, calculating a clock drift according to a ratio of the first time difference and the second time difference, and storing the second value of the first system time and the second value of the second system time and the clock drift in the memory as updated content of the time relation. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
Specification