CN111596721B - Data time tag synchronization method and device - Google Patents

Data time tag synchronization method and device Download PDF

Info

Publication number
CN111596721B
CN111596721B CN202010274252.9A CN202010274252A CN111596721B CN 111596721 B CN111596721 B CN 111596721B CN 202010274252 A CN202010274252 A CN 202010274252A CN 111596721 B CN111596721 B CN 111596721B
Authority
CN
China
Prior art keywords
time
data
synchronization
local clock
local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010274252.9A
Other languages
Chinese (zh)
Other versions
CN111596721A (en
Inventor
刘均
沈海煌
杨凡凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202010274252.9A priority Critical patent/CN111596721B/en
Publication of CN111596721A publication Critical patent/CN111596721A/en
Application granted granted Critical
Publication of CN111596721B publication Critical patent/CN111596721B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/12Synchronisation of different clock signals provided by a plurality of clock generators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0644External master-clock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The application is applicable to the technical field of data processing, and provides a method and equipment for synchronizing data time tags, wherein the method comprises the following steps: setting an initial time tag for each acquired data according to the local time of the local clock; if the local clock is not synchronous, time synchronization is carried out on the local clock through a preset time source to obtain a synchronized local clock; and determining the actual time label of each data according to the reference time of the synchronized local clock and the initial time label. According to the method and the device, when the equipment is in a clock non-synchronization state, the initial time labels of all data are firstly recorded through the local clock, the operation time of all data based on the local time dimension is determined, and after subsequent clock synchronization is completed, the time labels of all data are correspondingly adjusted according to the deviation amount of clock adjustment, so that the purpose of time label synchronization can be achieved, the difficulty and the development cost of time synchronization are reduced, and the configuration efficiency of the time labels is improved.

Description

Data time tag synchronization method and device
Technical Field
The present application belongs to the technical field of data processing, and in particular, to a method and an apparatus for synchronizing a data time tag.
Background
With the continuous progress of electronization, more and more information is stored in the form of electronic data, and when data is processed, a time tag can be added to each data, so that the operation time of each data in a database and the operation sequence among each data are determined through the time tag, and therefore, the accuracy and the uniformity of the time tag directly influence the effect of data management.
In the existing data management technology, when a time tag is configured for data, a time synchronization protocol corresponding to a system to which the data belongs needs to be configured according to the system to which the data belongs, the time tag of the data is configured through the time synchronization protocol, and corresponding time synchronization protocols need to be developed for different systems, so that development difficulty and development cost are increased, different data correspond to different time synchronization protocols, and the corresponding protocols need to be searched before the time tag is configured to configure the time tag, so that configuration efficiency of the time tag is reduced.
Disclosure of Invention
In view of this, embodiments of the present application provide a method and an apparatus for synchronizing a data time tag, so as to solve the problems that in the existing data management technology, a time synchronization protocol corresponding to a system to which data belongs needs to be configured according to the system, development difficulty and development cost are high, and configuration efficiency of a time tag is low.
A first aspect of an embodiment of the present application provides a method for synchronizing data time tags, including:
setting an initial time tag for each acquired data according to the local time of the local clock;
if the local clock is not synchronous, time synchronization is carried out on the local clock through a preset time source to obtain a synchronized local clock;
and determining the actual time label of each data according to the reference time of the synchronized local clock and the initial time label.
In a possible implementation manner of the first aspect, if the local clock is not synchronized, performing time synchronization on the local clock by using a preset time source to obtain a synchronized local clock, including:
receiving data response information fed back by the time source, and extracting coordinated universal time from the data response information;
and calibrating the local clock based on the coordinated universal time to obtain the synchronized local clock.
In a possible implementation manner of the first aspect, the receiving data response information fed back by the time source and extracting a coordinated world time from the data response information includes:
selecting any existing page from a preset online page list as a target page;
generating an access request of the target page, and sending the access request to a server corresponding to the target page;
receiving page data which are fed back by the server and are related to the target page;
analyzing the page data and extracting a response head field of the page data;
and analyzing date data from the response header field to acquire the coordinated universal time.
In a possible implementation manner of the first aspect, the receiving data response information fed back by the time source and extracting a coordinated world time from the data response information includes:
receiving a positioning signal fed back by a positioning system, and extracting positioning feedback time from the positioning signal;
determining the coordinated universal time based on the positioning feedback time.
In a possible implementation manner of the first aspect, the determining an actual time stamp of each piece of data according to the reference time of the synchronized local clock and the initial time stamp includes:
acquiring the synchronization time of the local clock at the time of completing the time synchronization;
determining the storage duration of each data according to the synchronization time and the initial time tag;
and determining the actual time label of each data according to the reference time and the storage duration.
In a possible implementation manner of the first aspect, the setting an initial time tag for each obtained data according to a local time of a local clock includes:
storing each acquired data in a cache queue;
and setting an initial time tag for each data in the cache queue according to the local time of the local clock.
In a possible implementation manner of the first aspect, after determining an actual time tag of each piece of data according to the reference time of the synchronized local clock and the initial time tag, the method further includes:
storing the data configured with the actual time tag in a local database;
and if an uploading instruction about the data is received, uploading the data to a cloud database.
A second aspect of an embodiment of the present application provides a data time tag synchronization apparatus, including:
the initial time setting unit is used for setting an initial time tag for each data obtained in a time to be synchronized state according to the local time of the local clock;
the clock synchronization unit is used for carrying out time synchronization on the local clock through a preset time source to obtain a synchronized local clock if the local clock is not synchronized;
and the time adjusting unit is used for determining the actual time label of each piece of data according to the reference time of the synchronized local clock and the initial time label.
A third aspect of embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the first aspect when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of the first aspect.
In a fifth aspect, the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the data processing method of the terminal network model in any one of the above first aspects.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
According to the method and the device, the initial time labels of the data are recorded according to the local time of the local clock, the local clock is subjected to time synchronization through the time source when the device is in the clock to-be-synchronized state, so that the synchronized clock can be obtained, the time labels of the data obtained in the unsynchronized state are adjusted based on the reference time of the synchronized clock, the actual time labels are obtained, and the purpose of automatically synchronizing the time labels of the data is achieved. Compared with the prior data management technology, when the equipment is in a clock unsynchronized state such as an offline state or a system initial starting state, the initial time labels of all data are firstly recorded through the local clock, the operation time of all data based on the local time dimension is determined, the local clock is subjected to time synchronization through a uniform time source, and the time labels of all data are correspondingly adjusted according to the adjusted deviation amount of the synchronized local clock, so that the purpose of time label synchronization can be realized, corresponding time synchronization protocols do not need to be configured for different systems, the time synchronization can be carried out through the same time source, the difficulty and the development cost of the time synchronization are reduced, and the configuration efficiency of the time labels is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of an implementation of a synchronization method for data time tags according to a first embodiment of the present application;
fig. 2 is a flowchart illustrating a detailed implementation of a data time tag synchronization method S102 according to a second embodiment of the present application;
fig. 3 is a flowchart illustrating a detailed implementation of a data time tag synchronization method S201 according to a third embodiment of the present application;
fig. 4 is a flowchart illustrating a detailed implementation of a data time tag synchronization method S201 according to a fourth embodiment of the present application;
fig. 5 is a flowchart illustrating a detailed implementation of a method S103 for synchronizing a data time tag according to a fifth embodiment of the present application;
fig. 6 is a flowchart illustrating an implementation details of a data time tag synchronization method S1012 according to a sixth embodiment of the present application;
fig. 7 is a flowchart illustrating a detailed implementation of a data time tag synchronization method S104 according to a seventh embodiment of the present application;
fig. 8 is a block diagram illustrating a structure of a data time tag synchronization apparatus according to an embodiment of the present application;
fig. 9 is a schematic diagram of a terminal device according to another embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
According to the method and the device, the initial time labels of all data are recorded according to the local time of the local clock, when the device is in the clock to-be-synchronized state, the local clock is subjected to time synchronization through the time source, so that a synchronized clock can be obtained, the time labels of all the data obtained in the unsynchronized state are adjusted based on the reference time of the synchronized clock, and the actual time labels are obtained, so that the purpose of automatically synchronizing the time labels of the data is achieved, the problems that the existing data management technology needs to configure the time synchronization protocol corresponding to the system according to the system to which the data belong, development difficulty and development cost are high, and configuration efficiency of the time labels is low are solved.
In the embodiment of the present application, the main execution body of the flow is a terminal device. The terminal devices include but are not limited to: servers, computers, smart phones, and tablets, among other devices capable of performing synchronized tasks of data time tags. Fig. 1 shows a flowchart of an implementation of a synchronization method for data time tags according to a first embodiment of the present application, which is detailed as follows:
in S101, an initial time stamp is set for each acquired data according to the local time of the local clock.
In this embodiment, in the operation process of the terminal device, the data may be acquired in a manner of receiving other devices or in a manner of local generation, and according to the acquisition time of each data, a corresponding time tag may be set for each data.
In S102, if the local clocks are not synchronized, time synchronization is performed on the local clocks by a preset time source, so as to obtain synchronized local clocks.
In this embodiment, before performing a synchronization operation on the local clock, the terminal device may determine a synchronization state of the current device, and select a setting procedure of a corresponding time tag based on the synchronization state of the device. Specifically, if the terminal device is currently in a time to-be-synchronized state, the time tag of the obtained data is set in the manner from S102 to S103.
In a possible implementation manner, if the terminal device detects that the current device is in a time synchronized state, that is, in this state, the local clock of the terminal device is time-synchronized with a preset time source, and the local time is calibrated, at this time, the terminal device may set, based on the time of the synchronized clock, an actual time tag of each data obtained in the synchronized state, and store the data configured with the actual time tag in a database of the terminal device, and optionally, the terminal device may upload the data to a corresponding cloud system.
Illustratively, the scene in which the terminal device uploads the acquired data to the cloud system may be an interactive scene, for example, an online chat scene, the terminal device may send chat information with an interactive object, and in order to ensure readability of the chat records, time synchronization is required to be performed on creation time of each chat information, so that the generated chat records can determine an order among the chat information according to a time tag in the chat process, and accuracy of the chat records is ensured. If the terminal device configures the time tag of the chat information by using the local clock and uploads the chat information of the unsynchronized time to the cloud system, the sequence of the chat information in the chat records generated by the cloud system may be abnormal, so that the readability of the chat records is reduced.
For example, the time displayed by the local clock of the terminal device is 14:00, the actual time of the cloud system is 13:55, and the time tag of the chat message generated by the terminal device based on the local clock is 5 minutes later than the actual time, for example, the cloud system sends a message of "do you have a meal" to the terminal device at the actual time 13:55, at this time, the terminal device feeds back a message of "eat", and the time tag of the message is configured based on the local clock of the terminal device, namely, the time tag is 14: 00. And the cloud system sends a piece of information of ' did eat ' to the terminal device at an actual time of 14:00, the terminal device feeds back a piece of information of ' no eat ', the information is configured based on a local clock of the terminal device, a corresponding time tag is 14:05, and finally, a chat record generated by the cloud system based on the time tags of the chat information is ' did you eat? → do you eat the fruit? → eat → no eat ", the relation between the contexts of the chat logs is wrong and the actual chat scene cannot be restored, reducing the effect of data management.
In one possible implementation, the terminal device may be configured with a synchronization tag, where the synchronization tag is specifically used to identify whether the local clock is time-synchronized with a preset time source. If the local clock is not time-synchronized with the time source, it can be recognized that the terminal device is in a time to-be-synchronized state, and the synchronization tag is configured as a first bit value, for example, identified by 0; if the local clock is time-synchronized with the time source, it can be recognized that the terminal device is in a time-synchronized state, and the synchronization tag is configured to be a second bit value, for example, identified by 1. The terminal device may determine the current state by reading the synchronization tag. When the operation state of the terminal device changes, the above-mentioned synchronization tag may be changed.
In a possible implementation manner, the terminal device may perform time synchronization operation with the time source at a preset synchronization period, so as to ensure the accuracy of the local clock. If the terminal equipment detects that the current synchronization period reaches a preset synchronization period, executing a time synchronization process, if the synchronization is successful, setting the synchronization label as a second bit value, and setting the current state as a time synchronized state; otherwise, if the synchronization fails, the synchronization tag is set as a first bit value, and the current state is set as a time to-be-synchronized state.
In a possible implementation manner, when the terminal device is switched from the power-off state to the power-on state, the device is initially started, or is in the offline state (for example, a state of disconnecting communication with a time source or disconnecting the internet may be identified as the offline state), the terminal device may configure the synchronization tag as a first bit value, that is, identify that the terminal device is in the state to be synchronized.
In this embodiment, when the terminal device is in the time to be synchronized state, the initial time tag may be configured for each data acquired in the current state through the local time of each local clock. Since a certain operation time is required for the terminal device to perform time synchronization, or the current environment of the terminal device cannot perform time synchronization with the time source, for example, in an offline environment, in this case, the user may operate the terminal device, and corresponding data may be generated in the operation process, so that the terminal device may initiate a time tag for each data facility in a time to-be-synchronized state by using the local time of the local clock.
In a possible implementation manner, each data may be configured with a corresponding synchronization identifier, where the synchronization identifier is used to indicate that a time tag of the data is a synchronized time tag or a time tag to be synchronized, where the synchronized time tag is an actual time tag whose time value is a time value matching a reference time of a time source; the time stamp to be synchronized is the initial time stamp, which is configured based on the local time of the local clock, and may be deviated from the reference time of the time source. After the clock synchronization is completed, the terminal device can identify the data of the time tag to be adjusted based on the synchronization identifier.
In this embodiment, the terminal device may preset a time source, and the terminal device may perform time synchronization on the local clock by using the time of the time source as a reference, thereby ensuring that the time of the clock of the terminal device is consistent with that of the time of the clock of the time source, ensuring that all stored data configure time tags based on the same time dimension, determining the accuracy of the time tags of each data, and facilitating management of the data.
In one possible implementation, the time source may be another terminal device, which may be referred to as a reference device for ease of distinction. The terminal equipment and the reference equipment form a synchronous system, and the clocks of opposite ends can be mutually calibrated between the two pieces of equipment based on the local clocks, so that the time synchronization between the two pieces of equipment is realized. The reference device may be another device with the same device model as the terminal device, or may be another device with a different device model from the terminal device, where the positions of the two devices in the synchronization process are equal, the reference time is determined based on respective local times, and the local clocks are adjusted by the reference time so that the times of the clocks of the two devices are consistent. The time synchronization process may be: the terminal device sends the first time of the local clock to the reference terminal and receives the second time fed back by the reference terminal based on the first time, the terminal device can use a median between the first time and the second time as the reference time and adjust the local clock of the reference device based on the reference time, and similarly, the reference device can also adjust the local clock of the reference device based on the median as the reference time, so that the time of the clocks of the two devices is consistent, the time synchronization is realized, and the synchronized clock is obtained.
In one possible implementation, the time source may be a cloud system configured with a corresponding reference clock, for example, the time may be obtained by coordinating universal time UTC as the time of the reference clock. The terminal device can acquire the reference time of the reference clock of the cloud system, adjust the time of the local clock based on the reference time to perform time synchronization, and identify the local clock of which the time is adjusted based on the reference time as the synchronized clock.
In a possible implementation manner, due to different system architectures of the cloud systems, the terminal device may configure a corresponding time synchronization protocol based on the cloud systems. The terminal equipment can acquire the time synchronization system matched with the cloud system from the protocol library according to the system identification of the cloud system, and performs time synchronization with the cloud system by calling the time synchronization protocol, so that the accuracy of synchronization operation can be improved.
In S103, an actual time stamp of each data is determined according to the reference time of the synchronized local clock and the initial time stamp.
In this embodiment, after the terminal device completes the time synchronization operation on the local clock, the reference time may be determined, the time offset of the time may be determined based on the reference time and the time of the local clock at the time of completing the adjustment, and the initial time tag of each data may be adjusted according to the offset, so as to obtain the actual time tag of each data based on the reference clock of the time source, thereby ensuring that all stored data are the same as the time source, and configuring the time tag based on the same time dimension, thereby implementing the uniformity of the time tag, and facilitating subsequent management of the data.
In a possible implementation manner, if each piece of data is configured with a synchronization identifier, the terminal device may change the synchronization identifier from to be synchronized to synchronized after setting an actual time tag of the data acquired in the state that each piece of time is to be synchronized based on the reference time of the synchronized clock.
In a possible implementation manner, the terminal device may store the data acquired in the to-be-synchronized state in the to-be-synchronized queue, and the terminal device may sequentially determine the actual time tag of each data according to the sequence of each data in the to-be-synchronized queue, and move the adjusted data out of the to-be-synchronized queue and store the adjusted data in the corresponding storage area.
Illustratively, the terminal device is installed with a plurality of different applications, such as application a and application B, and the terminal device can operate application a to generate data 1 to data 5 and operate application B to generate data 6 to data 8, respectively, in a time to be synchronized state. After adjusting the time labels of the data 1 to the data 5, the terminal device can identify the storage area corresponding to the application program A and store the data 1 to the data 5 into the storage area corresponding to the application program A; similarly, the data 6 to 8 may be stored in the storage area corresponding to the application B.
It can be seen from the above that, in the synchronization method for data time tags provided in the embodiments of the present application, the initial time tags of each data are recorded according to the local time of the local clock, and when the device is in a state where the clocks are to be synchronized, the local clock is time-synchronized by the time source, so that a synchronized clock can be obtained, and the time tags of each data obtained in an unsynchronized state are adjusted based on the reference time of the synchronized clock, so as to obtain the actual time tags, thereby achieving the purpose of automatically synchronizing the time tags of the data. Compared with the prior data management technology, when the equipment is in a clock unsynchronized state such as an offline state or a system initial starting state, the initial time labels of all data are firstly recorded through the local clock, the operation time of all data based on the local time dimension is determined, the local clock is subjected to time synchronization through a uniform time source, and the time labels of all data are correspondingly adjusted according to the adjusted deviation amount of the synchronized local clock, so that the purpose of time label synchronization can be realized, corresponding time synchronization protocols do not need to be configured for different systems, the time synchronization can be carried out through the same time source, the difficulty and the development cost of the time synchronization are reduced, and the configuration efficiency of the time labels is improved.
Fig. 2 shows a flowchart of a specific implementation of the data time tag synchronization method S102 according to the second embodiment of the present application. Referring to fig. 2, with respect to the embodiment shown in fig. 1, in the synchronization method for a data time tag provided in this embodiment, at S102, the method includes: s201 to S202 are described in detail as follows:
further, if the local clock is not synchronized, performing time synchronization on the local clock through a preset time source to obtain a synchronized local clock, including:
in S201, data response information fed back by the time source is received, and coordinated universal time is extracted from the data response information.
In this embodiment, after receiving a data acquisition request from a terminal device, a time source may generate data response information for responding to the request, determine a coordinated universal time corresponding to the request time according to the request time when the data acquisition request is received and a synchronous clock inside the time source, add the coordinated universal time to the data response information, and feed back the data response information to the terminal device. After receiving the data response information fed back by the time source, the terminal device may analyze the parameter value of the corresponding field to obtain the coordinated universal time UTC.
In a possible implementation manner, in order to improve the accuracy of the coordinated universal time, the terminal device may obtain network parameters, such as a network bandwidth, an error rate, a signal-to-noise ratio, and the like, of a communication connection with the time source, determine a network delay corresponding to transmission of the data response information based on the network parameters, calibrate the coordinated universal time based on the network delay, and perform time synchronization on the local clock based on the calibrated coordinated universal time. Although the data response information may include delay information, the delay information carried in the data packet is determined based on the local time of the local clock and the standard time between the time sources, that is, the delay information itself has a time deviation of a position, that is, the delay obtained based on the sending time of the data acquisition request and the corresponding receiving time when the time source receives the request is not accurate, in this case, the terminal device cannot correct the coordinated universal time through the inaccurate delay, and therefore, the terminal device may estimate the network delay through the network parameters and calibrate the coordinated universal time based on the estimated values.
In one possible implementation manner, the data type of the fed back data response information is different according to different systems of the time source. In this case, the terminal device may recognize the data type of the data response information, and extract the coordinated universal time by an analysis algorithm matching the data type.
In a possible implementation manner, the terminal device may send a data acquisition request to a preset time source. The terminal device may store a network address of a device corresponding to the time source, and send the generated data acquisition request to the device corresponding to the time source according to the network address. For example, the time source may be a cloud system, and the terminal device may establish a communication connection with the cloud system through a client program corresponding to the cloud system, and send the data acquisition request to the cloud system through the communication connection; for example, the time source may also be a reference device, in which case the terminal device may send the data acquisition request to the reference device according to an IP address or a communication address of the reference device corresponding to the time source.
In a possible implementation manner, the terminal device may configure a plurality of local clocks according to the number of preset applications, and since different application data need to be uploaded to different cloud systems and time sources used by different cloud systems may differ, in this case, the terminal device may configure corresponding synchronous clocks for different application programs, so that the plurality of local clocks may be configured based on the number of preset applications. In the time to be synchronized state, the count values of the local clocks may be the same. The terminal device may create a plurality of threads with the same number as the local clocks, and send data acquisition requests to the time sources corresponding to the preset applications through the created threads, respectively, so as to receive data response information fed back by each time source, determine a coordinated universal time based on the data response information corresponding to each time source, and perform time synchronization on each local clock through each received coordinated universal time, so as to obtain synchronized clocks corresponding to each time source.
In S202, the local clock is calibrated based on the coordinated universal time to obtain the synchronized clock.
In this embodiment, after obtaining the coordinated universal time, the terminal device may determine a deviation value between a clock of the terminal device and a synchronous clock of the time source according to the coordinated universal time and the sending time corresponding to the sending of the data obtaining request, and adjust the local clock based on the deviation value to obtain the synchronized clock.
In the embodiment of the application, when the data acquisition request is sent to the preset time source, the request is responded by the data source, and the coordination time for responding the data acquisition request is extracted from the data response information, the local clock is subjected to time synchronization based on the coordination time, so that the convenience of time synchronization is improved, a corresponding synchronization protocol does not need to be written, and the development amount of the time synchronization process is reduced.
Fig. 3 shows a flowchart of a specific implementation of a data time tag synchronization method S201 according to a third embodiment of the present application. Referring to fig. 3, with respect to the embodiment described in fig. 2, in the synchronization method for data time tags provided in this embodiment, S201 includes: s301 to S305 are specifically described as follows:
further, the receiving the data response information fed back by the time source and extracting the coordinated universal time from the data response information includes:
in S301, any existing page is selected from a preset online page list as a target page.
In this embodiment, the terminal device may store an online page list, where the online page list includes access links of a plurality of online pages. Because the online page is associated with the server and faces the whole internet, namely the clock of the server corresponding to the online page is often a synchronized clock, and the timing operation can be performed based on the coordinated universal time. The terminal equipment can take the server corresponding to the online page as a time source, and sends an access request to the online page to perform time synchronization on the local clock, so that universal time synchronization is realized, a corresponding synchronization protocol does not need to be written, and the development amount of synchronization operation is reduced.
In this embodiment, the online page list at least includes a page identifier of an online page, where the page identifier may be an identifier that can be used to access the online page, such as a domain name or a network address of the online page. The terminal device may select one of the online pages recorded in the online page list as a target page. For example, the existing page may be an online page corresponding to a search engine such as hundredths, google, or the like, or may also be a game page such as an online game, and the type of the online page is not limited herein.
In a possible implementation manner, after accessing an existing page in an online page list each time, a terminal device may record a response time of each existing page, and configure a priority of the existing page according to each response time, wherein the smaller the value of the response time, the higher the priority of the existing page; conversely, the larger the value of the response time length is, the lower the priority of the existing page is. The terminal equipment can select the existing page with the highest priority as the target page according to the priority of each existing page, so that the influence of network delay on subsequent time synchronization can be reduced.
In S302, an access request of the target page is generated, and the access request is sent to a server corresponding to the target page.
In this embodiment, after the terminal device selects the target page from the online page list, an access request for accessing the target page may be generated according to the page identifier of the target page, for example, by inputting a domain name of the target page on a browser application, generating a corresponding access request through the browser application, and sending the access request to a server corresponding to the target page, so as to respond to the access request through the server corresponding to the target page, and obtain page data of the target page.
In S303, page data about the target page fed back by the server is received.
In this embodiment, after receiving the access request, the server of the target page may feed back page data required for generating the target page to the terminal device, where it should be noted that the page data of the online page includes a timestamp, and the timestamp is used for recording time corresponding to the fed-back page data, and the timestamp may coordinate with a format of universal time for recording.
In this embodiment, after sending an access request to a server of a target page, a terminal device may maintain a long link between the server and the terminal device, and receive page data fed back by the server through the long link.
In a possible implementation manner, the terminal device may be configured with a response timer, and the response timer may start the response timer after the terminal device sends the access request, and obtain a count value of the response timer; if the count value of the response timer is greater than the preset response threshold value, identifying that the access request response is overtime, at this time, selecting other existing pages from the online page list as target pages, accessing newly identified target pages, and performing timing operation on the response timer again until page data fed back by the server of the target pages are received when the count value is less than or equal to the response threshold value. If the number of times of sending the access request exceeds a preset number threshold and page data of any target page fed back by the server is not successfully received, at this time, it can be recognized that the terminal device is in an offline state, and network abnormal information is output.
In S304, the page data is parsed, and a response header field of the page data is extracted.
In this embodiment, after acquiring the page data of the obtained target page, the terminal device may analyze the page data and extract a response header field of the page data. And if the access request is an http access request, the returned page data is http page data, and an http response header is extracted from the http page data and used as the response header field.
In S305, the date data is parsed from the response header field, and the coordinated universal time is acquired.
In this embodiment, each piece of page data includes a corresponding timestamp, and the timestamp is stored in a response header field, so that the terminal device can analyze the response header field, extract a time corresponding to a clock of the server when the page data is fed back, and obtain the coordinated universal time. The timestamp can be specifically stored in date Data in a response header field, namely a Data field, and the terminal device can obtain coordinated universal time corresponding to the time of sending the page Data by reading a parameter value of the date Data.
In the embodiment of the application, when the page data obtained from the server of the online page is obtained and the corresponding coordination world is extracted from the page data, the method can be applied to the time synchronization scene of any equipment, only the terminal equipment has the function of connecting the internet, and a corresponding time synchronization protocol does not need to be configured for each terminal equipment, so that the development amount of synchronization operation is reduced.
Fig. 4 shows a flowchart of a specific implementation of a method S201 for synchronizing data time tags according to a fourth embodiment of the present application. Referring to fig. 4, with respect to the embodiment described in fig. 2, in the synchronization method for data time tags provided in this embodiment, S201: s401 to S402 are specifically described as follows:
further, the receiving the data response information fed back by the time source and extracting the coordinated universal time from the data response information includes:
in S401, a positioning signal fed back by the positioning system is received, and a positioning feedback time is extracted from the positioning signal.
In this embodiment, the terminal device may use a synchronous clock inside the positioning system as a time source. In this case, the positioning system may transmit a positioning signal to the terminal device at a preset time interval, and the positioning signal may include a positioning feedback time determined based on a synchronous clock of the positioning system. Specifically, if the terminal device is configured with a global positioning GPS module, the positioning signal fed back by the GPS positioning satellite may be received by the GPS module at a preset time interval.
In this embodiment, the terminal device may receive the positioning signal fed back by the positioning system through the positioning module, and analyze the positioning signal after receiving the positioning signal, so as to extract the positioning feedback time.
In S402, the coordinated universal time is determined based on the positioning feedback time.
In this embodiment, the terminal device may recognize the positioning feedback time as the coordinated universal time.
In the embodiment of the application, the coordinated world time is acquired through the positioning system, so that most of terminal equipment configured with the positioning module can be time-synchronized through the positioning signal, the time synchronization efficiency is improved, a synchronization protocol does not need to be configured, and the convenience and the universality of time synchronization are improved.
Fig. 5 shows a flowchart of a specific implementation of the synchronization method S103 for data time tags according to a fifth embodiment of the present application. Referring to fig. 5, with respect to any one of the embodiments shown in fig. 1 to 4, a method for synchronizing a data time tag S103 provided in this embodiment includes: s501 to S503 are specifically detailed as follows:
further, the determining an actual time stamp of each of the data according to the reference time of the synchronized local clock and the initial time stamp includes:
in S501, the synchronization time of the local clock at the time of completion of time synchronization is acquired.
In this embodiment, after the terminal device completes the synchronization operation on the local clock, the synchronization time corresponding to the time synchronization completion time of the local clock may be recorded, and the reference time corresponding to the synchronization completion time of the synchronized clock is already configured. I.e., the synchronization time and the reference time are time values that are both used to identify the time when the time synchronization status is completed.
In S502, a storage duration of each piece of data is determined according to the synchronization time and the initial time tag.
In this embodiment, the terminal device may determine the storage duration of each data according to the synchronization time and the initial time tag. Specifically, the terminal device may calculate a difference between the two times to obtain the storage duration.
In S503, the actual time tag of each piece of data is determined according to the reference time and the storage duration.
In this embodiment, the terminal device may determine the actual receiving time of each data according to the reference time of the synchronous clock and the storage duration corresponding to each data, and configure the actual time tag according to the actual receiving time. Specifically, the terminal device may calculate a difference between the reference time and the storage time length, and calculate the actual receiving time.
For example, the above manner of calculating the actual time tag may be: real time label is the reference time (synchronous time-initial time label)
In the embodiment of the application, the terminal device determines the storage time of each data by determining the synchronization time of the local clock at the synchronization completion time, and calculates the actual time tag of each data based on the storage time, so that the synchronization operation on each time tag can be completed.
Fig. 6 shows a flowchart of a specific implementation of a method S101 for synchronizing data time tags according to a sixth embodiment of the present application. Referring to fig. 6, with respect to any one of the embodiments in fig. 1 to 4, in the synchronization method for data time tags provided in this embodiment, S101 includes: s601 to S602 are specifically described as follows:
further, the setting an initial time tag for each obtained data according to the local time of the local clock includes:
in S601, each acquired data is stored in a buffer queue.
In this embodiment, the terminal device may receive data sent by other devices or data locally produced during the use process in the time to-be-synchronized state, and store all the data in the time to-be-synchronized state in a buffer queue, where the buffer queue may be stored in a buffer area of the terminal device.
In S602, an initial time tag is set for each data in the cache queue according to the local time of the local clock.
In this embodiment, the terminal device may set a corresponding initial time tag for each data according to the local time corresponding to the time when each data is added to the cache queue.
In the embodiment of the application, the terminal device can store the data of the time tag to be synchronized in the cache queue, so that the data of the time tag to be synchronized can be conveniently subjected to data time synchronization processing.
Fig. 7 is a flowchart illustrating a specific implementation of a method for synchronizing data time tags according to a seventh embodiment of the present application. Referring to fig. 7, with respect to the embodiment shown in fig. 6, in the synchronization method for data time tags provided in this embodiment, after determining the actual time tag of each piece of data according to the reference time of the synchronized local clock and the initial time tag, the method further includes: S701-S702, detailed as follows:
further, after determining the actual time stamp of each of the data according to the reference time of the synchronized local clock and the initial time stamp, the method further includes:
in S701, the data configured with the actual time tag is stored in a local database.
In this embodiment, after the terminal device adjusts the actual time tags of the data in each buffer queue, the terminal device may sequentially remove each data from the buffer queue and store the data in the local database of the terminal device. Specifically, different application programs may be configured with corresponding storage areas in a local database, and the terminal device may determine the storage area of each data according to the application to which the data belongs.
In S702, if an upload instruction about the data is received, the data is uploaded to a cloud database.
In this embodiment, part of the data may be uploaded to the cloud server, in this case, when receiving an upload instruction of the data, the terminal device may identify whether the data is stored in the cache queue or the local database, and if the data is stored in the cache queue, adjust an actual time tag of the data by using a local synchronized clock, and upload the adjusted data to the cloud server; otherwise, if the data is stored in the local database, the data can be directly extracted from the local database and uploaded to the corresponding server.
In the embodiment of the application, the data of the adjusted time tag is stored in the local database, so that the resource occupancy rate of a cache region can be reduced, and the utilization rate of a storage space is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 8 is a block diagram illustrating a structure of a data time tag synchronization apparatus according to an embodiment of the present application, where the data time tag synchronization apparatus includes units for performing steps in the corresponding embodiment of fig. 1. Please refer to fig. 8 and fig. 1 for a related description of the embodiment. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 8, the apparatus for synchronizing the data time stamp includes:
an initial time setting unit 81 configured to set an initial time tag for each obtained data according to a local time of the local clock;
a clock synchronization unit 82, configured to perform time synchronization on the local clock through a preset time source to obtain a synchronized local clock if the local clock is not synchronized;
and a time adjusting unit 83, configured to determine an actual time tag of each piece of data according to the reference time of the synchronized local clock and the initial time tag.
Optionally, the clock synchronization unit 82 includes:
the coordinated universal time acquisition unit is used for receiving the data response information fed back by the time source and extracting coordinated universal time from the data response information;
and the coordinated universal time adjusting unit is used for calibrating the local clock based on the coordinated universal time to obtain the synchronized local clock.
Optionally, the coordinated universal time obtaining unit includes:
the target page selecting unit is used for selecting any one existing page from a preset online page list as a target page;
an access request sending unit, configured to generate an access request for the target page, and send the access request to a server corresponding to the target page;
the page data receiving unit is used for receiving page data which are fed back by the server and are related to the target page;
a response header field extraction unit, configured to analyze the page data and extract a response header field of the page data;
and the date data analyzing unit is used for analyzing date data from the response header field and acquiring the coordinated universal time.
Optionally, the coordinated universal time obtaining unit includes:
the positioning signal receiving unit is used for receiving a positioning signal fed back by a positioning system and extracting positioning feedback time from the positioning signal;
a positioning feedback time extraction unit for determining the coordinated universal time based on the positioning feedback time.
Optionally, the time adjusting unit 83 includes:
a synchronization time acquiring unit, configured to acquire a time synchronization completion time and a synchronization time of the local clock;
the storage duration calculation unit is used for determining the storage duration of each piece of data according to the synchronization time and the initial time tag;
and the actual time tag determining unit is used for determining the actual time tag of each piece of data according to the reference time and the storage time length.
Optionally, the initial time setting unit 81 includes:
a buffer queue adding unit, configured to store each acquired data in a buffer queue;
and the initial time tag configuration unit is used for setting an initial time tag for each data in the cache queue according to the local time of the local clock.
Optionally, the apparatus for synchronizing the data time stamp further includes:
a data storage unit for storing the data configured with the actual time tag in a local database;
and the data uploading unit is used for uploading the data to a cloud database if an uploading instruction about the data is received.
Therefore, the synchronization device for data time tags provided in this embodiment of the present application may also record, by the local clock, the initial time tags of each data when the device is in a clock unsynchronized state, such as an offline state or a system initial start state, determine the operation time of each data based on the local time dimension, perform time synchronization on the local clock by using a uniform time source, and correspondingly adjust the time tags of each data according to the deviation amount of the adjusted local clock after synchronization, thereby achieving the purpose of time tag synchronization.
Fig. 9 is a schematic diagram of a terminal device according to another embodiment of the present application. As shown in fig. 9, the terminal device 9 of this embodiment includes: a processor 90, a memory 91 and a computer program 92, such as a synchronization program for data time tags, stored in said memory 91 and executable on said processor 90. The processor 90, when executing the computer program 92, implements the steps in the above-described embodiments of the method for synchronizing the time stamps of the respective data, for example, S101 to S103 shown in fig. 1. Alternatively, the processor 90, when executing the computer program 92, implements the functions of the units in the device embodiments, such as the functions of the modules 81 to 83 shown in fig. 8.
Illustratively, the computer program 92 may be divided into one or more units, which are stored in the memory 91 and executed by the processor 90 to accomplish the present application. The one or more units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 92 in the terminal device 9. For example, the computer program 92 may be divided into an initial time setting unit, a clock synchronization unit, and a time adjustment unit, each of which functions as described above.
The terminal device 9 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 90, a memory 91. Those skilled in the art will appreciate that fig. 9 is only an example of a terminal device 9, and does not constitute a limitation to the terminal device 9, and may include more or less components than those shown, or combine some components, or different components, for example, the terminal device may also include an input-output device, a network access device, a bus, etc.
The Processor 90 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 91 may be an internal storage unit of the terminal device 9, such as a hard disk or a memory of the terminal device 9. The memory 91 may also be an external storage device of the terminal device 9, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 9. Further, the memory 91 may also include both an internal storage unit and an external storage device of the terminal device 9. The memory 91 is used for storing the computer program and other programs and data required by the terminal device. The memory 91 may also be used to temporarily store data that has been output or is to be output.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for synchronizing data time tags, comprising:
setting an initial time tag for each acquired data according to the local time of the local clock;
if the local clock is not synchronous, time synchronization is carried out on the local clock through a preset time source to obtain a synchronized local clock;
determining an actual time tag of each data according to the reference time of the synchronized local clock and the initial time tag;
the synchronization method further comprises: configuring a plurality of local clocks according to the number of preset applications, wherein each preset application corresponds to a preset time source;
if the local clock is not synchronized, performing time synchronization on the local clock through a preset time source to obtain a synchronized local clock, specifically: and if the local clocks are not synchronized, performing time synchronization on the local clocks of the preset applications corresponding to the data through the preset time source corresponding to the preset applications corresponding to the data to obtain the synchronized local clocks.
2. The synchronization method according to claim 1, wherein if the local clocks are not synchronized, time-synchronizing the local clocks by a preset time source to obtain synchronized local clocks, comprises:
receiving data response information fed back by the time source, and extracting coordinated universal time from the data response information;
and calibrating the local clock based on the coordinated universal time to obtain the synchronized local clock.
3. The synchronization method according to claim 2, wherein the receiving the data response information fed back by the time source and extracting the coordinated universal time from the data response information comprises:
selecting any existing page from a preset online page list as a target page;
generating an access request of the target page, and sending the access request to a server corresponding to the target page;
receiving page data which are fed back by the server and are related to the target page;
analyzing the page data and extracting a response head field of the page data;
and analyzing date data from the response header field to acquire the coordinated universal time.
4. The synchronization method according to claim 2, wherein the receiving the data response information fed back by the time source and extracting the coordinated universal time from the data response information comprises:
receiving a positioning signal fed back by a positioning system, and extracting positioning feedback time from the positioning signal;
determining the coordinated universal time based on the positioning feedback time.
5. The synchronization method according to any one of claims 1 to 4, wherein the determining an actual time stamp of each of the data according to the reference time of the synchronized local clock and the initial time stamp comprises:
acquiring the synchronization time of the local clock at the time of completing time synchronization;
determining the storage duration of each data according to the synchronization time and the initial time tag;
and determining the actual time label of each data according to the reference time and the storage duration.
6. The synchronization method according to any one of claims 1 to 4, wherein the setting of the initial time tag for each obtained data according to the local time of the local clock comprises:
storing each acquired data in a cache queue;
and setting an initial time tag for each data in the cache queue according to the local time of the local clock.
7. The synchronization method according to claim 6, further comprising, after said determining an actual time stamp for each of said data based on said reference time of said synchronized local clock and said initial time stamp:
storing the data configured with the actual time tag in a local database;
and if an uploading instruction about the data is received, uploading the data to a cloud database.
8. A data time tag synchronization apparatus, comprising:
the initial time setting unit is used for setting an initial time tag for each data obtained in a time to be synchronized state according to the local time of the local clock;
the clock synchronization unit is used for carrying out time synchronization on the local clock through a preset time source to obtain a synchronized local clock if the local clock is not synchronized;
a time adjusting unit, configured to determine an actual time tag of each piece of data according to the reference time of the synchronized local clock and the initial time tag;
the synchronization apparatus is further configured to: configuring a plurality of local clocks according to the number of preset applications, wherein each preset application corresponds to a preset time source;
the clock synchronization unit is specifically configured to: and if the local clock is not synchronized, performing time synchronization on the local clock of the preset application corresponding to the data through a preset time source corresponding to the preset application corresponding to the data to obtain the synchronized local clock.
9. A terminal device, characterized in that it comprises a memory, a processor and a computer program stored in said memory and executable on said processor, said processor executing the steps of the method according to any one of claims 1 to 7 when said computer program is executed.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202010274252.9A 2020-04-09 2020-04-09 Data time tag synchronization method and device Active CN111596721B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010274252.9A CN111596721B (en) 2020-04-09 2020-04-09 Data time tag synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010274252.9A CN111596721B (en) 2020-04-09 2020-04-09 Data time tag synchronization method and device

Publications (2)

Publication Number Publication Date
CN111596721A CN111596721A (en) 2020-08-28
CN111596721B true CN111596721B (en) 2022-05-10

Family

ID=72190528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010274252.9A Active CN111596721B (en) 2020-04-09 2020-04-09 Data time tag synchronization method and device

Country Status (1)

Country Link
CN (1) CN111596721B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099567A (en) * 2020-10-29 2020-12-18 深圳移航通信技术有限公司 Time calibration method, electronic device and storage medium
CN113098939B (en) * 2021-03-25 2023-06-02 深圳市轱辘车联数据技术有限公司 Data transmission method, data transmission device and electronic equipment
CN114326928B (en) * 2021-12-08 2024-04-26 深圳市汇川技术股份有限公司 Method, apparatus, control device and computer readable storage medium for time synchronization
CN114360086B (en) * 2021-12-09 2024-04-26 北京汽车研究总院有限公司 Data processing method, data processing device, vehicle device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1826742A (en) * 2003-09-11 2006-08-30 思科技术公司 System for synchronizing circuitry in an access network
EP2541815A1 (en) * 2011-06-28 2013-01-02 Alcatel Lucent Clock synchronization network
CN102857529A (en) * 2011-06-30 2013-01-02 镇江雅迅软件有限责任公司 Offline application system based on timestamp
CN110932815A (en) * 2019-12-18 2020-03-27 锐捷网络股份有限公司 Time synchronization method, device, network equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9534486B2 (en) * 2014-03-13 2017-01-03 Halliburton Energy Services Inc. Method and system for tracking time in a downhole tool without the need for a battery
EP3161638A1 (en) * 2014-06-24 2017-05-03 Virsec Systems, Inc. Automated root cause analysis of single or n-tiered applications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1826742A (en) * 2003-09-11 2006-08-30 思科技术公司 System for synchronizing circuitry in an access network
EP2541815A1 (en) * 2011-06-28 2013-01-02 Alcatel Lucent Clock synchronization network
CN102857529A (en) * 2011-06-30 2013-01-02 镇江雅迅软件有限责任公司 Offline application system based on timestamp
CN110932815A (en) * 2019-12-18 2020-03-27 锐捷网络股份有限公司 Time synchronization method, device, network equipment and storage medium

Also Published As

Publication number Publication date
CN111596721A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
CN111596721B (en) Data time tag synchronization method and device
US8345561B2 (en) Time monitor
CN111555834B (en) Clock synchronization method and system of wireless network based on IEEE1588 protocol
JP4347082B2 (en) Time correction device, time correction method, and time correction program for event trace data
CN109600186B (en) Clock synchronization method and device
CN111061338B (en) Method, system and equipment for updating time sequence of baseboard management controller
CN111459954A (en) Distributed data synchronization method, device, equipment and medium
JP6527289B2 (en) Time synchronization method, sensor accommodating terminal, and sensor network system
CN111259022B (en) Information synchronization method, synchronization system, computer equipment and medium
US7330488B2 (en) System, method, and article of manufacture for synchronizing time of day clocks on first and second computers
CN112583509B (en) Method and device for acquiring time stamp of data stream, storage medium and electronic device
CN113711511B (en) Industrial equipment supporting multi-time synchronization protocol
US20140337696A1 (en) Method and apparatus for obtaining web data
WO2018041108A1 (en) Method, apparatus, and device for determining clock time of time synchronization packet
CN107003691B (en) Techniques for synchronously sampling counters based on global clock
US11263112B2 (en) Method and apparatus for evaluating quality of software running environment of device
CN110865973B (en) Data processing method and equipment and related device
CN115964440A (en) Data synchronization method and device and data synchronization system
CN112910595A (en) Real-time communication method and device
CN103945237A (en) Clock synchronization method and system, digital television equipment and EPG server
CN113259039A (en) Time synchronization method and device, computer equipment and storage medium
CN103888990A (en) Power consumption test method, device and system for network service application of terminal device
CN113626402A (en) Log data acquisition method and device, electronic equipment and storage medium
CN110928954A (en) HBase index synchronization method, HBase index synchronization device, computer equipment and storage medium
US12019467B2 (en) Estimation of event generation times to synchronize recordation data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant